Skip to content

Commit

Permalink
Fixing release script (#641) (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudhirverma authored Jul 18, 2024
1 parent b915908 commit dc8ba8f
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: GitHub Pages

on:
push:
tags:
- '*.*.*'

jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -14,30 +14,32 @@ jobs:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3

- name: Use Node 18.x
uses: actions/setup-node@v1
with:
node-version: 18.18.2

- name: set env
run: |
export NODE_OPTIONS=--openssl-legacy-provider
- name: install dependency
run: npm install

- name: Run Build
run: |
npm run build
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
if: |
!contains(github.ref, 'rc') &&
!contains(github.ref, 'RC') &&
!contains(github.ref, 'alpha') &&
!contains(github.ref, 'M') &&
!contains(github.ref, 'beta')
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build # Replace "dist" with the output directory of your build

release:
needs: deploy
runs-on: ubuntu-latest
Expand All @@ -55,4 +57,4 @@ jobs:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
prerelease: false

0 comments on commit dc8ba8f

Please sign in to comment.