Skip to content

Commit c38fc7b

Browse files
committed
ci: release.yml
1 parent 23e4567 commit c38fc7b

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ permissions:
1414
jobs:
1515
create-release:
1616
runs-on: ubuntu-latest
17+
environment: production
1718
steps:
1819
- name: Checkout code
1920
uses: actions/checkout@v5
2021
with:
2122
fetch-depth: 0
22-
token: ${{ secrets.GITHUB_TOKEN }}
23+
token: ${{ secrets.RELEASE_TOKEN }}
2324

2425
- name: Validate version format
2526
run: |
@@ -78,4 +79,26 @@ jobs:
7879
run: |
7980
echo "Waiting for tag to sync to GitHub..."
8081
sleep 5
81-
echo "Tag should be available, GoReleaser will start shortly"
82+
echo "Tag should be available, GoReleaser will start shortly"
83+
84+
- name: Summary
85+
run: |
86+
VERSION="${{ github.event.inputs.version }}"
87+
echo "### Release Started" >> $GITHUB_STEP_SUMMARY
88+
echo "" >> $GITHUB_STEP_SUMMARY
89+
echo "**Version:** v$VERSION" >> $GITHUB_STEP_SUMMARY
90+
echo "**Tag:** v$VERSION" >> $GITHUB_STEP_SUMMARY
91+
echo "" >> $GITHUB_STEP_SUMMARY
92+
echo "## Automated Steps" >> $GITHUB_STEP_SUMMARY
93+
echo "" >> $GITHUB_STEP_SUMMARY
94+
echo "1. Version file updated (\`internal/version.go\`)" >> $GITHUB_STEP_SUMMARY
95+
echo "2. Git tag created and pushed (\`v$VERSION\`)" >> $GITHUB_STEP_SUMMARY
96+
echo "3. [GoReleaser workflow](https://github.com/${{ github.repository }}/actions/workflows/go-releaser.yml) will build binaries and create draft release" >> $GITHUB_STEP_SUMMARY
97+
echo "4. [Inno Setup workflow](https://github.com/${{ github.repository }}/actions/workflows/compile-inno-setup.yml) will compile Windows installers" >> $GITHUB_STEP_SUMMARY
98+
echo "" >> $GITHUB_STEP_SUMMARY
99+
echo "## Next Steps" >> $GITHUB_STEP_SUMMARY
100+
echo "" >> $GITHUB_STEP_SUMMARY
101+
echo "1. Wait for workflows to complete (approximately 10-15 minutes)" >> $GITHUB_STEP_SUMMARY
102+
echo "2. Visit [Releases page](https://github.com/${{ github.repository }}/releases)" >> $GITHUB_STEP_SUMMARY
103+
echo "3. Review the draft release for \`v$VERSION\`" >> $GITHUB_STEP_SUMMARY
104+
echo "4. Click **Publish release** to make it official" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)