-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.14 KB
/
baseprinter.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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-24.04
steps:
- name: "Generate baseprint into autobaseprint branch and deploy preview to GitHub Pages"
uses: castedo/baseprinter-action@v9
with:
xargs-input: baseprinter-xargs.txt
# do not use baseprint-path in sources
# baseprint snapshot contents will be automatically stored here
# on the autobaseprint branch
baseprint-path: baseprint
- uses: actions/upload-pages-artifact@v3
with:
path: _site
deploy:
needs: build
runs-on: ubuntu-24.04
steps:
- name: "Deploy to GitHub Pages"
id: deployment
uses: actions/deploy-pages@v4
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}