1- # Simple workflow for deploying static content to GitHub Pages
2- name : Deploy static content to Pages
1+ name : Build and Deploy Jekyll
32
43on :
5- # Runs on pushes targeting the default branch
64 push :
7- branches : ["main"]
8-
9- # Allows you to run this workflow manually from the Actions tab
5+ branches :
6+ - main
107 workflow_dispatch :
118
12- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
139permissions :
1410 contents : read
1511 pages : write
1612 id-token : write
1713
18- # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19- # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2014concurrency :
21- group : " pages"
15+ group : pages
2216 cancel-in-progress : false
2317
2418jobs :
25- # Single deploy job since we're just deploying
19+ build :
20+ runs-on : ubuntu-latest
21+ steps :
22+ - name : Build with Jekyll
23+ uses : noraworld/jekyll-build-pages@main
24+ with :
25+ use_ruby_version : false
26+ use_gemfile : false
27+
2628 deploy :
29+ needs : build
30+ runs-on : ubuntu-latest
2731 environment :
2832 name : github-pages
2933 url : ${{ steps.deployment.outputs.page_url }}
30- runs-on : ubuntu-latest
3134 steps :
32- - name : Checkout
33- uses : actions/checkout@v4
34- - name : Setup Pages
35- uses : actions/configure-pages@v5
36- - name : Test PowerShell Code
37- shell : pwsh
38- run : ./Tests/Test-PowerShell.ps1
39- - name : Test MarkDown Files
40- shell : pwsh
41- run : ./Tests/Test-MarkDown.ps1
42- # - name: Build Pages
43- # shell: pwsh
44- # run: ./build.ps1
45- # - name: Upload artifact
46- # uses: actions/upload-pages-artifact@v3
47- # with:
48- # # Upload entire repository
49- # path: ./Web/_site/
50- # - name: Deploy to GitHub Pages
51- # id: deployment
52- # uses: actions/deploy-pages@v4
35+ - name : Deploy to GitHub Pages
36+ id : deployment
37+ uses : actions/deploy-pages@v4
0 commit comments