File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 runs-on : ubuntu-latest
3131 name : documentation
3232 permissions :
33- # This gives the default GITHUB_TOKEN write permission to commit and push the
34- # added or changed files to the reposito
33+ # Required by release-please-action
3534 contents : write
35+ pull-requests : write
3636 steps :
3737 - uses : actions/checkout@v4
3838 with :
@@ -157,21 +157,10 @@ jobs:
157157 - tests
158158 runs-on : ubuntu-latest
159159 steps :
160- - uses : actions/checkout@v4
161-
162- - uses : google- github-actions/release-please-action@v4
163- id : release
160+ # https://github.com/googleapis/release-please-action/blob/main/README.md
161+ # Requires personal access token
162+ # Guide: https:// github.com/nvim-neorocks/sample-luarocks-plugin?tab=readme-ov-file#generating-a-pat-personal-access-token
163+ - uses : googleapis/ release-please-action@v4
164164 with :
165+ token : ${{ secrets.RELEASE_PLEASE_TOKEN }}
165166 release-type : simple
166- package-name : copy-python-path.nvim
167-
168- - name : tag stable versions
169- if : ${{ steps.release.outputs.release_created }}
170- run : |
171- git config user.name github-actions[bot]
172- git config user.email github-actions[bot]@users.noreply.github.com
173- git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
174- git tag -d stable || true
175- git push origin :stable || true
176- git tag -a stable -m "Last Stable Release"
177- git push origin stable
You can’t perform that action at this time.
0 commit comments