From 5db63c039129bcff173081f20e8d4fcb15ede155 Mon Sep 17 00:00:00 2001 From: Ariel Rokem Date: Wed, 12 Jun 2024 06:53:00 -0700 Subject: [PATCH 1/2] Do this at the "step" level. --- .github/workflows/build.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 44361e7..34bf126 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v4 - uses: codespell-project/actions-codespell@master - build-deploy: + build: runs-on: ubuntu-latest steps: @@ -37,8 +37,12 @@ jobs: name: poster path: poster.pdf + deploy: + runs-on: ubuntu-latest + if: github.event.pull_request.merged == true + steps: - name: Commit poster PDF - if: ${{ github.event.pull_request.merged }} + if: github.event.pull_request.merged uses: EndBug/add-and-commit@v9 with: add: 'poster.pdf' @@ -46,7 +50,7 @@ jobs: message: 'Add poster.pdf at ${{ github.sha }}' - name: Deploy html to gh-pages - if: ${{ github.event.pull_request.merged }} + if: github.event.pull_request.merged uses: JamesIves/github-pages-deploy-action@4.1.5 with: branch: gh-pages From 5821cd71f86a919e28b1df4b1a3039c08f199bd8 Mon Sep 17 00:00:00 2001 From: Ariel Rokem Date: Wed, 12 Jun 2024 06:59:53 -0700 Subject: [PATCH 2/2] This needs build to complete first. --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 34bf126..45d9cd3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,6 +38,7 @@ jobs: path: poster.pdf deploy: + needs: build runs-on: ubuntu-latest if: github.event.pull_request.merged == true steps: