|
2 | 2 | # They are provided by a third-party and are governed by |
3 | 3 | # separate terms of service, privacy policy, and support |
4 | 4 | # documentation. |
5 | | - |
6 | 5 | # Sample workflow for building and deploying a Jekyll site to GitHub Pages |
7 | 6 | name: Deploy Jekyll site to Pages |
8 | | - |
9 | 7 | on: |
10 | 8 | # Runs on pushes targeting the default branch |
11 | 9 | push: |
12 | 10 | branches: ["main"] |
13 | | - |
14 | 11 | # Allows you to run this workflow manually from the Actions tab |
15 | 12 | workflow_dispatch: |
16 | | - |
17 | 13 | # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages |
18 | 14 | permissions: |
19 | 15 | contents: read |
20 | 16 | pages: write |
21 | 17 | id-token: write |
22 | | - |
23 | 18 | # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. |
24 | 19 | # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. |
25 | 20 | concurrency: |
26 | 21 | group: "pages" |
27 | 22 | cancel-in-progress: false |
28 | | - |
29 | 23 | jobs: |
30 | 24 | # Build job |
31 | 25 | build: |
32 | 26 | runs-on: ubuntu-latest |
33 | 27 | steps: |
34 | 28 | - name: Checkout |
35 | | - uses: actions/checkout@v3 |
| 29 | + uses: actions/checkout@v4 |
36 | 30 | - name: Setup Ruby |
37 | 31 | uses: ruby/setup-ruby@v1.207.0 |
38 | 32 | with: |
|
41 | 35 | cache-version: 0 # Increment this number if you need to re-download cached gems |
42 | 36 | - name: Setup Pages |
43 | 37 | id: pages |
44 | | - uses: actions/configure-pages@v3 |
| 38 | + uses: actions/configure-pages@v4 |
45 | 39 | - name: Build with Jekyll |
46 | 40 | # Outputs to the './_site' directory by default |
47 | 41 | run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" |
|
50 | 44 | - name: Upload artifact |
51 | 45 | # Automatically uploads an artifact from the './_site' directory by default |
52 | 46 | uses: actions/upload-pages-artifact@v4 |
53 | | - |
54 | 47 | # Deployment job |
55 | 48 | deploy: |
56 | 49 | environment: |
|
61 | 54 | steps: |
62 | 55 | - name: Deploy to GitHub Pages |
63 | 56 | id: deployment |
64 | | - uses: actions/deploy-pages@v2 |
| 57 | + uses: actions/deploy-pages@v4 |
0 commit comments