diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..2d833a8 --- /dev/null +++ b/.github/workflows/pages.yml @@ -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