From dc8ba8fe4117e14b43fd67c529f0f866c6b1c694 Mon Sep 17 00:00:00 2001 From: Sudhir Verma Date: Thu, 18 Jul 2024 16:52:06 +0530 Subject: [PATCH] Fixing release script (#641) (#642) --- .github/workflows/publish.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2521a453..7e59cc00 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,10 +1,10 @@ name: GitHub Pages - + on: push: tags: - '*.*.*' - + jobs: deploy: runs-on: ubuntu-latest @@ -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/github-pages-deploy-action@4.1.0 with: branch: gh-pages folder: build # Replace "dist" with the output directory of your build - release: needs: deploy runs-on: ubuntu-latest @@ -55,4 +57,4 @@ jobs: tag_name: ${{ github.ref }} release_name: Release ${{ github.ref }} draft: false - prerelease: false + prerelease: false \ No newline at end of file