|
1 |
| -# This workflow uses actions that are not certified by GitHub. |
2 |
| -# They are provided by a third-party and are governed by |
3 |
| -# separate terms of service, privacy policy, and support |
4 |
| -# documentation. |
5 |
| - |
6 |
| -# Sample workflow for building and deploying a Jekyll site to GitHub Pages |
7 | 1 | name: Deploy Jekyll site to Pages
|
8 | 2 |
|
9 | 3 | on:
|
10 |
| - # Runs on pushes targeting the default branch |
11 | 4 | push:
|
12 | 5 | branches: ["main"]
|
13 | 6 |
|
14 |
| - # Allows you to run this workflow manually from the Actions tab |
15 | 7 | workflow_dispatch:
|
16 | 8 |
|
17 |
| -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages |
18 | 9 | permissions:
|
19 | 10 | contents: read
|
20 | 11 | pages: write
|
21 | 12 | id-token: write
|
22 | 13 |
|
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 | 14 | concurrency:
|
26 | 15 | group: "pages"
|
27 | 16 | cancel-in-progress: false
|
28 | 17 |
|
29 | 18 | jobs:
|
30 |
| - # Build job |
31 | 19 | build:
|
32 | 20 | runs-on: ubuntu-latest
|
33 | 21 | steps:
|
34 | 22 | - name: Checkout
|
35 | 23 | uses: actions/checkout@v4
|
| 24 | + |
36 | 25 | - name: Setup Ruby
|
37 |
| - # https://github.com/ruby/setup-ruby/releases/tag/v1.207.0 |
38 | 26 | uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4
|
39 | 27 | with:
|
40 |
| - ruby-version: '3.1' # Not needed with a .ruby-version file |
41 | 28 | bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
42 | 29 | cache-version: 0 # Increment this number if you need to re-download cached gems
|
| 30 | + |
43 | 31 | - name: Setup Pages
|
44 | 32 | id: pages
|
45 | 33 | uses: actions/configure-pages@v5
|
| 34 | + |
46 | 35 | - name: Build with Jekyll
|
47 |
| - # Outputs to the './_site' directory by default |
48 | 36 | run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
|
49 | 37 | env:
|
50 | 38 | JEKYLL_ENV: production
|
| 39 | + |
51 | 40 | - name: Upload artifact
|
52 |
| - # Automatically uploads an artifact from the './_site' directory by default |
53 | 41 | uses: actions/upload-pages-artifact@v3
|
54 | 42 |
|
55 |
| - # Deployment job |
56 | 43 | deploy:
|
57 | 44 | environment:
|
58 | 45 | name: github-pages
|
|
0 commit comments