From 20907d2f339a4f1006c1b91cd1e0e74c069d05dd Mon Sep 17 00:00:00 2001 From: Aleksander Kiryk Date: Tue, 19 Nov 2024 11:03:49 +0100 Subject: [PATCH 1/2] Skip webpage artifact upload --- .github/workflows/publish-webpage.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/publish-webpage.yml b/.github/workflows/publish-webpage.yml index 9b5d2e51206..7b53ec4b467 100644 --- a/.github/workflows/publish-webpage.yml +++ b/.github/workflows/publish-webpage.yml @@ -113,10 +113,3 @@ jobs: with: name: pr_number path: ./pr_number.txt - - - name: Pack webpage as an artifact - if: always() - uses: actions/upload-artifact@v3 - with: - name: webpage - path: ./public.new From a262640dc498befe86d6fc2cc42893f4b38a306e Mon Sep 17 00:00:00 2001 From: Aleksander Kiryk Date: Wed, 20 Nov 2024 12:32:01 +0100 Subject: [PATCH 2/2] Bump webpage directly from triggering branch --- .github/workflows/gh-pages-pr-deploy.yml | 33 ------------------------ .github/workflows/publish-webpage.yml | 7 +++++ 2 files changed, 7 insertions(+), 33 deletions(-) delete mode 100644 .github/workflows/gh-pages-pr-deploy.yml diff --git a/.github/workflows/gh-pages-pr-deploy.yml b/.github/workflows/gh-pages-pr-deploy.yml deleted file mode 100644 index e0f4c824c0d..00000000000 --- a/.github/workflows/gh-pages-pr-deploy.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: GH-Pages PR Deploy - -on: - workflow_run: - workflows: ["VeeR-EL2 CI"] - types: - - completed - -jobs: - deploy: - name: PR Deploy - concurrency: - group: gh-pages - runs-on: ubuntu-latest - permissions: - contents: write - if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }} - steps: - - - name: Download artifact - id: download-artifact - uses: dawidd6/action-download-artifact@v2 - with: - name: webpage - path: ./public.new - run_id: ${{ github.event.workflow_run.id }} - - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - if: ${{ github.ref == 'refs/heads/main' }} - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./public.new diff --git a/.github/workflows/publish-webpage.yml b/.github/workflows/publish-webpage.yml index 7b53ec4b467..bb7f37f3e36 100644 --- a/.github/workflows/publish-webpage.yml +++ b/.github/workflows/publish-webpage.yml @@ -113,3 +113,10 @@ jobs: with: name: pr_number path: ./pr_number.txt + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + if: success() + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public.new