Skip to content

Commit

Permalink
Add CI/CD pipeline to generate PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsinger committed Oct 17, 2023
1 parent 06ea18a commit 4aa1b1d
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: GitHub Pages
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Export PDF
run: npx -y decktape index.html index.pdf
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: .
deploy:
needs: build
if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2 # or the latest "vX.X.X" version tag for this action

0 comments on commit 4aa1b1d

Please sign in to comment.