File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Sample workflow for building and deploying a Jekyll site to GitHub Pages
2+ name : Deploy Jekyll with GitHub Pages dependencies preinstalled
3+
4+ on :
5+ # Runs on pushes targeting the default branch
6+
7+ # Allows you to run this workflow manually from the Actions tab
8+ workflow_dispatch :
9+
10+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+
16+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
17+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
18+ concurrency :
19+ group : " pages"
20+ cancel-in-progress : false
21+
22+ jobs :
23+ # Build job
24+ build :
25+ runs-on : ubuntu-latest
26+ steps :
27+ - name : Checkout
28+ uses : actions/checkout@v4
29+ - name : Setup Pages
30+ uses : actions/configure-pages@v5
31+ - name : Build with Jekyll
32+ uses : actions/jekyll-build-pages@v1
33+ with :
34+ source : ./
35+ destination : ./_site
36+ - name : Upload artifact
37+ uses : actions/upload-pages-artifact@v3
38+
39+ # Deployment job
40+ deploy :
41+ environment :
42+ name : github-pages
43+ url : ${{ steps.deployment.outputs.page_url }}
44+ runs-on : ubuntu-latest
45+ needs : build
46+ steps :
47+ - name : Deploy to GitHub Pages
48+ id : deployment
49+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments