Skip to content

Commit

Permalink
Adds a manual deployment step.
Browse files Browse the repository at this point in the history
  • Loading branch information
arokem committed Jun 12, 2024
1 parent 99877dc commit c0999d9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,3 @@ jobs:
with:
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
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
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: gh-pages
folder: ${{github.workspace}}/website
22 changes: 22 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy

# configure manual trigger
on:
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Commit poster PDF
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
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: gh-pages
folder: ${{github.workspace}}/website

0 comments on commit c0999d9

Please sign in to comment.