diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 44361e7..45d9cd3 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,13 @@ jobs: name: poster path: poster.pdf + deploy: + needs: build + 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 +51,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