File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 1919 - name : Bump version
2020 run : script/dev bump-version
2121
22- # This will not trigger workflows, because it doesn 't use a personal access token.
22+ # We don't want this to trigger workflows, so we don 't use a personal access token.
2323 - name : Create the release commit
2424 # TODO: Sign the tag?
2525 run : |
Original file line number Diff line number Diff line change 8181 - uses : actions/checkout@v2
8282 - name : Generate release notes
8383 run : |
84- script/dev release-notes "$(git describe --tags --abbrev=0)" > RELEASE-NOTES
84+ RELEASE_VERSION=$(git describe --tags --abbrev=0)
85+ script/dev release-notes "$RELEASE_VERSION" > RELEASE-NOTES
86+ echo RELEASE_VERSION=$RELEASE_VERSION >> $GITHUB_ENV
8587 cat RELEASE-NOTES
8688
8789 - name : Download binaries
9698 body_path : RELEASE-NOTES
9799 files : |
98100 tree-sitter-grammars-*.tar.gz
101+
102+ - name : Greenlight releasing to MELPA
103+ run : |
104+ git push origin ${{ env.RELEASE_VERSION }}:refs/heads/release
105+ continue-on-error : true
106+
107+ # We don't want this to trigger workflows, so we don't use a personal access token.
108+ - name : Greenlight releasing to MELPA Stable
109+ uses : actions/github-script@v4
110+ with :
111+ script : |
112+ github.git.createRef({
113+ owner: context.repo.owner,
114+ repo: context.repo.repo,
115+ ref: "refs/tags/melpa-stable/v${{ env.RELEASE_VERSION }}",
116+ sha: context.sha
117+ })
118+ continue-on-error : true
You can’t perform that action at this time.
0 commit comments