Skip to content

Commit

Permalink
Merge pull request #9 from arokem/merge_actions
Browse files Browse the repository at this point in the history
Do this at the "step" level.
  • Loading branch information
arokem authored Jun 12, 2024
2 parents 621caba + 5821cd7 commit 99877dc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: codespell-project/actions-codespell@master

build-deploy:
build:
runs-on: ubuntu-latest
steps:

Expand All @@ -37,16 +37,21 @@ 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'
author_name: 'GitHub Actions'
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
Expand Down

0 comments on commit 99877dc

Please sign in to comment.