|
1 | 1 | name: Deploy static content to Pages |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: ["master", "test-docs"] |
6 | | - workflow_dispatch: |
| 4 | + push: |
| 5 | + branches: ["master", "test-docs"] |
| 6 | + workflow_dispatch: |
7 | 7 |
|
8 | 8 | permissions: |
9 | | - contents: read |
10 | | - pages: write |
11 | | - id-token: write |
| 9 | + contents: read |
| 10 | + pages: write |
| 11 | + id-token: write |
12 | 12 |
|
13 | 13 | concurrency: |
14 | | - group: "pages" |
15 | | - cancel-in-progress: false |
| 14 | + group: "pages" |
| 15 | + cancel-in-progress: false |
16 | 16 |
|
17 | 17 | jobs: |
18 | | - deploy: |
19 | | - environment: |
20 | | - name: github-pages |
21 | | - url: ${{ steps.deployment.outputs.page_url }} |
22 | | - env: |
23 | | - BUNDLE_GEMFILE: ${{ github.workspace }}/docs/Gemfile |
24 | | - runs-on: ubuntu-latest |
25 | | - steps: |
26 | | - - name: Checkout |
27 | | - uses: actions/checkout@v4 |
28 | | - - name: Setup ruby |
29 | | - uses: ruby/setup-ruby@v1 |
30 | | - with: |
31 | | - ruby-version: '3.3.6' |
32 | | - - name: Setup node |
33 | | - uses: actions/setup-node@v4 |
34 | | - with: |
35 | | - node-version: 20 |
36 | | - - name: Install pnpm |
37 | | - run: npm install -g pnpm |
38 | | - - name: Install ruby packages |
39 | | - working-directory: ./docs |
40 | | - run: bundle |
41 | | - - name: Install javascript packages |
42 | | - working-directory: ./docs |
43 | | - run: pnpm install |
44 | | - - name: Build docs css |
45 | | - working-directory: ./docs |
46 | | - run: pnpm run build_docs_css |
47 | | - - name: Jekyll Build |
48 | | - working-directory: ./docs |
49 | | - run: bundle exec jekyll build |
50 | | - - name: Setup Pages |
51 | | - uses: actions/configure-pages@v5 |
52 | | - - name: Upload artifact |
53 | | - uses: actions/upload-pages-artifact@v3 |
54 | | - with: |
55 | | - path: './docs/_site' |
56 | | - - name: Deploy to GitHub Pages |
57 | | - id: deployment |
58 | | - uses: actions/deploy-pages@v4 |
| 18 | + deploy: |
| 19 | + environment: |
| 20 | + name: github-pages |
| 21 | + url: ${{ steps.deployment.outputs.page_url }} |
| 22 | + env: |
| 23 | + BUNDLE_GEMFILE: ${{ github.workspace }}/docs/Gemfile |
| 24 | + runs-on: ubuntu-latest |
| 25 | + steps: |
| 26 | + - name: Checkout |
| 27 | + uses: actions/checkout@v5 |
| 28 | + - name: Setup ruby |
| 29 | + uses: ruby/setup-ruby@v1 |
| 30 | + with: |
| 31 | + ruby-version: "3.4.5" |
| 32 | + - name: Setup node |
| 33 | + uses: actions/setup-node@v5 |
| 34 | + with: |
| 35 | + node-version: 22 |
| 36 | + - name: Install pnpm |
| 37 | + run: npm install -g pnpm |
| 38 | + - name: Install ruby packages |
| 39 | + working-directory: ./docs |
| 40 | + run: bundle |
| 41 | + - name: Install javascript packages |
| 42 | + working-directory: ./docs |
| 43 | + run: pnpm install |
| 44 | + - name: Build docs css |
| 45 | + working-directory: ./docs |
| 46 | + run: pnpm run build_docs_css |
| 47 | + - name: Jekyll Build |
| 48 | + working-directory: ./docs |
| 49 | + run: bundle exec jekyll build |
| 50 | + - name: Setup Pages |
| 51 | + uses: actions/configure-pages@v5 |
| 52 | + - name: Upload artifact |
| 53 | + uses: actions/upload-pages-artifact@v4 |
| 54 | + with: |
| 55 | + path: "./docs/_site" |
| 56 | + - name: Deploy to GitHub Pages |
| 57 | + id: deployment |
| 58 | + uses: actions/deploy-pages@v4 |
0 commit comments