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+ push :
7+ branches : ["main"]
8+
9+ # Allows you to run this workflow manually from the Actions tab
10+ workflow_dispatch :
11+
12+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+ permissions :
14+ contents : read
15+ pages : write
16+ id-token : write
17+
18+ # Allow one concurrent deployment
19+ concurrency :
20+ group : " pages"
21+ cancel-in-progress : true
22+
23+ jobs :
24+ # Build job
25+ build :
26+ runs-on : ubuntu-latest
27+ steps :
28+ - name : Checkout
29+ uses : actions/checkout@v3
30+ with :
31+ fetch-depth : 0
32+ - run : echo '' >> index.md
33+ - run : echo '# History' >> index.md
34+ - name : Append Git History
35+ run : git log -n 15 --abbrev-commit --date=short --decorate --format=format:'%h - (%ad) %s%n' --all | sed 's/^......./[&](https:\/\/github.com\/matrix-org\/arewep2pyet\/commit\/&)/' >> index.md
36+ - name : Setup Pages
37+ uses : actions/configure-pages@v2
38+ - name : Build with Jekyll
39+ uses : actions/jekyll-build-pages@v1
40+ with :
41+ source : ./
42+ destination : ./_site
43+ - name : Upload artifact
44+ uses : actions/upload-pages-artifact@v1
45+
46+ # Deployment job
47+ deploy :
48+ environment :
49+ name : github-pages
50+ url : ${{ steps.deployment.outputs.page_url }}
51+ runs-on : ubuntu-latest
52+ needs : build
53+ steps :
54+ - name : Deploy to GitHub Pages
55+ id : deployment
56+ uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments