|
9 | 9 | name: Test and build
|
10 | 10 | runs-on: ubuntu-20.04
|
11 | 11 | outputs:
|
| 12 | + version: ${{ steps.check_package_version.outputs.version }} |
12 | 13 | version_changed: ${{ steps.check_package_version.outputs.changed }}
|
13 | 14 | steps:
|
14 | 15 | - name: Clone repository
|
@@ -71,11 +72,10 @@ jobs:
|
71 | 72 | # `test_and_build` job first so this job is skipped rather than exited with an error.
|
72 | 73 | - name: Publish matching GitHub release draft
|
73 | 74 | id: github_release
|
74 |
| - uses: JamesMGreene/node-draft-releaser@v1 |
75 | 75 | env:
|
76 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
77 |
| - with: |
78 |
| - allow_release_name_update: 'false' |
| 76 | + GH_TOKEN: ${{ github.token }} |
| 77 | + GH_REPO: ${{ github.repository }} |
| 78 | + run: gh release edit "v${{ needs.test_and_build.outputs.version }}" --draft=false |
79 | 79 |
|
80 | 80 | - name: Write out the release URL
|
81 | 81 | run: echo "Released at $RELEASE_URL"
|
@@ -119,6 +119,13 @@ jobs:
|
119 | 119 | with:
|
120 | 120 | persist-credentials: false
|
121 | 121 |
|
| 122 | + # Hard-coded username and email for the GitHub bot user |
| 123 | + # https://api.github.com/users/github-actions%5Bbot%5D |
| 124 | + - name: Configure Git credentials |
| 125 | + run: | |
| 126 | + git config user.name github-actions[bot] |
| 127 | + git config user.email 41898282+github-actions[bot]@users.noreply.github.com |
| 128 | +
|
122 | 129 | - name: Set up Node.js
|
123 | 130 | uses: actions/setup-node@v4
|
124 | 131 | with:
|
@@ -150,5 +157,5 @@ jobs:
|
150 | 157 | - name: Install MkDocs
|
151 | 158 | run: pip install 'mkdocs-material>=9.0.0,<10.0.0'
|
152 | 159 |
|
153 |
| - - name: Build MkDocs |
| 160 | + - name: Build and deploy MkDocs |
154 | 161 | run: mkdocs gh-deploy --force
|
0 commit comments