This repository was archived by the owner on Jul 8, 2026. It is now read-only.
馃敄 release(2.0.0): Migrate User Management to MongoDB 馃帀 #50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Create Release on Version Change | |
| on: | |
| push: | |
| paths: | |
| - 'VERSION' | |
| jobs: | |
| create-release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Read version from VERSION file | |
| run: | | |
| version=$(cat VERSION) | |
| echo "version=${version}" >> $GITHUB_OUTPUT | |
| id: get_version | |
| - name: Read changelog for release description | |
| run: | | |
| changelog=$(cat changelog) | |
| echo "changelog<<EOF" >> $GITHUB_OUTPUT | |
| echo "$changelog" >> $GITHUB_OUTPUT | |
| echo "EOF" >> $GITHUB_OUTPUT | |
| id: get_changelog | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: ${{ steps.get_version.outputs.version }} | |
| name: "${{ steps.get_version.outputs.version }}" | |
| body: ${{ steps.get_changelog.outputs.changelog }} | |
| draft: false | |
| prerelease: false |