Skip to content

Commit 08f6d19

Browse files
ci: update release workflow
1 parent c68a87c commit 08f6d19

File tree

2 files changed

+25
-10
lines changed

2 files changed

+25
-10
lines changed

.github/workflows/docgen.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
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

.github/workflows/release.yml

+24-9
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ jobs:
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: |
@@ -41,9 +38,27 @@ jobs:
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 [email protected]
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 }}

0 commit comments

Comments
 (0)