File tree Expand file tree Collapse file tree 1 file changed +65
-0
lines changed
Expand file tree Collapse file tree 1 file changed +65
-0
lines changed Original file line number Diff line number Diff line change 1+ # Sample workflow for building and deploying a GitSite repo to GitHub Pages
2+ #
3+ # To get started with GitSite see: https://gitsite.org
4+
5+ name : Deploy GitSite to Pages
6+
7+ on :
8+ # Runs on pushes targeting the default branch
9+ push :
10+ branches : ["master"]
11+ pull_request :
12+ branches : ["master"]
13+
14+ # Allows you to run this workflow manually from the Actions tab
15+ workflow_dispatch :
16+
17+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
18+ permissions :
19+ contents : read
20+ pages : write
21+ id-token : write
22+
23+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
24+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
25+ concurrency :
26+ group : " pages"
27+ cancel-in-progress : false
28+
29+ jobs :
30+ # Build job
31+ build :
32+ runs-on : ubuntu-22.04
33+ steps :
34+ - name : Checkout
35+ uses : actions/checkout@v4
36+ with :
37+ submodules : recursive
38+ - name : Setup Node
39+ uses : actions/setup-node@v4
40+ with :
41+ node-version : 20
42+ - name : Install GitSite
43+ run :
44+ npm install gitsite-cli -g
45+ - name : Build with GitSite
46+ run :
47+ # set output dir to '_site' for pages jobs:
48+ gitsite-cli build -o _site -v
49+ - name : Setup Pages
50+ uses : actions/configure-pages@v5
51+ - name : Upload Artifact
52+ uses : actions/upload-pages-artifact@v3
53+ with :
54+ path : _site
55+
56+ # Deployment job
57+ deploy :
58+ environment :
59+ name : github-pages
60+ url : ${{ steps.deployment.outputs.page_url }}
61+ runs-on : ubuntu-latest
62+ needs : build
63+ steps :
64+ - name : Deploy to GitHub Pages
65+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments