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