File tree Expand file tree Collapse file tree 2 files changed +101
-0
lines changed
Expand file tree Collapse file tree 2 files changed +101
-0
lines changed Original file line number Diff line number Diff line change 1+ name : build_deploy
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ # - staging
8+ pull_request :
9+ repository_dispatch :
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 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.
20+ concurrency :
21+ group : ${{ github.workflow }}-${{ github.ref }}
22+ cancel-in-progress : false
23+
24+ jobs :
25+ build :
26+ runs-on : ubuntu-latest
27+ steps :
28+ - name : Checkout
29+ uses : actions/checkout@v4
30+
31+ - name : Setup Ruby
32+ uses : ruby/setup-ruby@v1
33+ with :
34+ ruby-version : ' 3.2'
35+ bundler-cache : true
36+ cache-version : 0 # Increment this number if you need to re-download cached gems
37+ - name : Setup Pages
38+ id : pages
39+ uses : actions/configure-pages@v3
40+
41+ - name : Build with Jekyll
42+ # Outputs to the './_site' directory by default
43+ run : JEKYLL_LOG_LEVEL=debug bundle exec jekyll build --verbose --trace --baseurl "${{ steps.pages.outputs.base_path }}"
44+ env :
45+ JEKYLL_ENV : production
46+
47+ - name : Upload artifact
48+ # Automatically uploads an artifact from the './_site' directory by default
49+ uses : actions/upload-pages-artifact@v2
50+
51+ # Deployment job
52+ deploy :
53+ environment :
54+ name : github-pages
55+ url : ${{ steps.deployment.outputs.page_url }}
56+ if : ${{ github.ref == 'refs/heads/main' }}
57+ runs-on : ubuntu-latest
58+ needs : build
59+ steps :
60+ - name : Deploy to GitHub Pages
61+ id : deployment
62+ uses : actions/deploy-pages@v2
Original file line number Diff line number Diff line change 1+ name : links
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - staging
8+ pull_request :
9+
10+ jobs :
11+ link_checker :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v3
15+
16+ - uses : ruby/setup-ruby@v1
17+ with :
18+ ruby-version : ' 3.1'
19+ bundler-cache : true
20+
21+ - name : Build site
22+ env :
23+ JEKYLL_ENV : production
24+ run : bundle exec jekyll build
25+
26+ - name : Link Checker
27+ uses : lycheeverse/lychee-action@v2
28+ with :
29+ args : --verbose --no-progress -- _site/**/*.html
30+ fail : true
31+ env :
32+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
33+
34+ # - name: Create Issue From File
35+ # uses: peter-evans/create-issue-from-file@v2
36+ # with:
37+ # title: Link Checker Report
38+ # content-filepath: ./lychee/out.md
39+ # labels: report, automated issue
You can’t perform that action at this time.
0 commit comments