|
9 | 9 | publish-documentation: |
10 | 10 | runs-on: ubuntu-latest |
11 | 11 | steps: |
12 | | - - uses: actions/checkout@v4 |
13 | | - with: |
14 | | - token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}' |
15 | | - fetch-depth: 0 |
16 | | - - name: Set up Python |
17 | | - uses: actions/setup-python@v5 |
18 | | - with: |
19 | | - python-version: '3.x' |
20 | | - - name: Install dependencies |
21 | | - run: | |
22 | | - python -m pip install -U mkdocs mkdocs-material |
23 | | - - name: Build docs |
24 | | - env: |
25 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
26 | | - run: | |
27 | | - python -m mkdocs build |
28 | | - - name: Generate Sponsors 💖 |
29 | | - uses: JamesIves/github-sponsors-readme-action@v1 |
30 | | - with: |
31 | | - token: ${{ secrets.PERSONAL_ACCESS_TOKEN_FOR_ORG }} |
32 | | - file: 'docs/README.md' |
33 | | - - name: Push doc to Github Page |
34 | | - uses: peaceiris/actions-gh-pages@v4 |
35 | | - with: |
36 | | - personal_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |
37 | | - publish_branch: gh-pages |
38 | | - publish_dir: ./site |
39 | | - user_name: "github-actions[bot]" |
40 | | - user_email: "github-actions[bot]@users.noreply.github.com" |
| 12 | + - uses: actions/checkout@v4 |
| 13 | + with: |
| 14 | + token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}" |
| 15 | + fetch-depth: 0 |
| 16 | + - name: Set up Python |
| 17 | + uses: actions/setup-python@v5 |
| 18 | + with: |
| 19 | + python-version: "3.x" |
| 20 | + - name: Install dependencies |
| 21 | + run: | |
| 22 | + python -m pip install -U mkdocs mkdocs-material |
| 23 | + - name: Build docs |
| 24 | + env: |
| 25 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 26 | + run: | |
| 27 | + python -m mkdocs build |
| 28 | + - name: Generate Sponsors 💖 |
| 29 | + uses: JamesIves/github-sponsors-readme-action@v1 |
| 30 | + with: |
| 31 | + token: ${{ secrets.PERSONAL_ACCESS_TOKEN_FOR_ORG }} |
| 32 | + file: "docs/README.md" |
| 33 | + - name: Push doc to Github Page |
| 34 | + uses: peaceiris/actions-gh-pages@v2 |
| 35 | + with: |
| 36 | + personal_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |
| 37 | + publish_branch: gh-pages |
| 38 | + publish_dir: ./site |
| 39 | + user_name: "github-actions[bot]" |
| 40 | + user_email: "github-actions[bot]@users.noreply.github.com" |
0 commit comments