From 7b5a8e90f3a8ff81d342c42e94fe49c40cd4395e Mon Sep 17 00:00:00 2001 From: Carlo Piovesan Date: Tue, 24 Sep 2024 11:22:43 +0200 Subject: [PATCH] Invert steps --- .github/workflows/main.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9f786af61..e22309781 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1072,6 +1072,13 @@ jobs: run: | ./scripts/npm_measure_lib.sh || true + - name: Deploy GitHub Page + if: github.ref == 'refs/heads/main' + run: | + git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY + git fetch origin gh-pages + ./scripts/deploy_pages.sh + - name: Publish to NPM env: NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} @@ -1083,13 +1090,6 @@ jobs: ./scripts/npm_publish_shell.sh ./scripts/npm_publish_react.sh - - name: Deploy GitHub Page - if: github.ref == 'refs/heads/main' - run: | - git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY - git fetch origin gh-pages - ./scripts/deploy_pages.sh - merge_reports: name: Merge benchmark reports runs-on: ubuntu-latest