|
1 | 1 | name: Deploy Jekyll with GitHub Pages dependencies preinstalled |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: |
6 | | - - master |
7 | | - workflow_dispatch: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - master |
| 7 | + paths: |
| 8 | + - docs/**/* |
| 9 | + workflow_dispatch: |
8 | 10 |
|
9 | 11 | permissions: |
10 | | - contents: read |
11 | | - pages: write |
12 | | - id-token: write |
| 12 | + contents: read |
| 13 | + pages: write |
| 14 | + id-token: write |
13 | 15 |
|
14 | 16 | # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. |
15 | 17 | # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. |
16 | 18 | concurrency: |
17 | | - group: "pages" |
18 | | - cancel-in-progress: false |
| 19 | + group: "pages" |
| 20 | + cancel-in-progress: false |
19 | 21 |
|
20 | 22 | jobs: |
21 | | - build: |
22 | | - runs-on: ubuntu-latest |
| 23 | + build: |
| 24 | + runs-on: ubuntu-latest |
23 | 25 |
|
24 | | - defaults: |
25 | | - run: |
26 | | - working-directory: ./docs |
| 26 | + defaults: |
| 27 | + run: |
| 28 | + working-directory: ./docs |
27 | 29 |
|
28 | | - steps: |
29 | | - - name: Checkout |
30 | | - uses: actions/checkout@v4 |
| 30 | + steps: |
| 31 | + - name: Checkout |
| 32 | + uses: actions/checkout@v4 |
31 | 33 |
|
32 | | - - name: Setup Ruby |
33 | | - uses: ruby/setup-ruby@v1 |
34 | | - with: |
35 | | - ruby-version: "3.1.1" |
36 | | - bundler-cache: true |
37 | | - working-directory: ./docs |
| 34 | + - name: Setup Ruby |
| 35 | + uses: ruby/setup-ruby@v1 |
| 36 | + with: |
| 37 | + ruby-version: "3.1" |
| 38 | + bundler-cache: true |
| 39 | + working-directory: ./docs |
38 | 40 |
|
39 | | - - name: Setup Pages |
40 | | - uses: actions/configure-pages@v5 |
| 41 | + - name: Setup Pages |
| 42 | + uses: actions/configure-pages@v5 |
41 | 43 |
|
42 | | - - name: Build with Jekyll |
43 | | - run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" |
44 | | - env: |
45 | | - JEKYLL_ENV: production |
| 44 | + - name: Build with Jekyll |
| 45 | + run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" |
| 46 | + env: |
| 47 | + JEKYLL_ENV: production |
46 | 48 |
|
47 | | - - name: Upload artifact |
48 | | - uses: actions/upload-pages-artifact@v3 |
49 | | - with: |
50 | | - path: ./docs/_site |
| 49 | + - name: Upload artifact |
| 50 | + uses: actions/upload-pages-artifact@v3 |
| 51 | + with: |
| 52 | + path: ./docs/_site |
51 | 53 |
|
52 | | - deploy: |
53 | | - runs-on: ubuntu-latest |
| 54 | + deploy: |
| 55 | + runs-on: ubuntu-latest |
54 | 56 |
|
55 | | - environment: |
56 | | - name: github-pages |
57 | | - url: ${{ steps.deployment.outputs.page_url }} |
| 57 | + environment: |
| 58 | + name: github-pages |
| 59 | + url: ${{ steps.deployment.outputs.page_url }} |
58 | 60 |
|
59 | | - needs: build |
| 61 | + needs: build |
60 | 62 |
|
61 | | - steps: |
62 | | - - name: Deploy to GitHub Pages |
63 | | - id: deployment |
64 | | - uses: actions/deploy-pages@v4 |
| 63 | + steps: |
| 64 | + - name: Deploy to GitHub Pages |
| 65 | + id: deployment |
| 66 | + uses: actions/deploy-pages@v4 |
0 commit comments