File tree Expand file tree Collapse file tree 2 files changed +25
-10
lines changed Expand file tree Collapse file tree 2 files changed +25
-10
lines changed Original file line number Diff line number Diff line change 3737 env :
3838 GH_TOKEN : ${{ secrets.GH_TOKEN }}
3939 COMMIT_MSG : |
40- [docgen] Update docs
40+ chore(docs): Update docs
4141 run : |
4242 rm lemmy-help
4343 git config user.name github-actions
Original file line number Diff line number Diff line change 2929 - name : Update changelog
3030 run : |
3131 nvim -l scripts/generate_changelog.lua ${{ github.event.inputs.version }}
32- - name : Print generated changelog
33- run : |
34- cat docs/changelog.org
3532 - name : Get release info
3633 id : release_info
3734 run : |
4138 echo "$changes"
4239 echo 'EOF'
4340 } >> $GITHUB_OUTPUT
44- # - name: Tag new version
45- # run: |
46- # git tag -a ${{ github.event.inputs.version }} -m "Release ${{ github.evente.inputs.version }}"
47- - name : Print release info
48- run :
49- echo "${{ steps.release_info.outputs.output }}"
41+ - name : Commit changelog
42+ env :
43+ GH_TOKEN : ${{ secrets.GH_TOKEN }}
44+ COMMIT_MSG : |
45+ chore(release): update changelog
46+ run : |
47+ git config user.name github-actions
48+ git config user.email github-actions@github.com
49+ git add docs/changelog.org
50+ git commit -m "${COMMIT_MSG}"
51+ git push
52+ - name : Tag new version
53+ run : |
54+ git tag -a ${{ github.event.inputs.version }} -m "Release ${{ github.event.inputs.version }}"
55+ git push --tags
56+ - name : Create Release
57+ id : create_release
58+ uses : actions/create-release@v1
59+ env :
60+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
61+ with :
62+ tag_name : ${{ github.event.inputs.version }}
63+ release_name : Release ${{ github.event.inputs.version }}
64+ body : ${{ steps.release_info.outputs.output }}
You can’t perform that action at this time.
0 commit comments