use baseprinter-action@v5 #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy baseprint preview to GitHub Pages | |
on: | |
push: | |
branches: [main] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | |
# and committing generated baseprint snapshot to autobaseprint branch | |
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: castedo/baseprinter-action@v5 | |
with: | |
defaults-file: "pandocin.yaml" | |
deploy: | |
needs: build | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: "Deploy to GitHub Pages" | |
id: deployment | |
uses: actions/deploy-pages@v2 | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} |