Skip to content

Commit

Permalink
minimal pandocin.yaml and init test for new action
Browse files Browse the repository at this point in the history
  • Loading branch information
castedo committed Dec 2, 2023
0 parents commit fdc4146
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/baseprinter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy baseprint preview to GitHub Pages

on:
push:
branches: [$default-branch]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: castedo/baseprinter-action
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 }}
4 changes: 4 additions & 0 deletions pandocin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Reference https://pandoc.org/MANUAL.html#defaults-files

# Change "/dev/null" to the name of a new input source file:
input-file: "/dev/null"

0 comments on commit fdc4146

Please sign in to comment.