chore: bump version to v1.0.0 #36
Workflow file for this run
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: | |
| push: | |
| tags: | |
| - '*' | |
| jobs: | |
| test: | |
| uses: ./.github/workflows/test.yml | |
| release: | |
| needs: test | |
| name: Create GitHub Release | |
| runs-on: ubuntu-22.04 | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.23.2' | |
| - name: Verify Go installation | |
| run: go version | |
| - name: Extract version from tag | |
| run: | | |
| echo "PACKAGE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | |
| if [[ "${GITHUB_REF#refs/tags/}" =~ -alpha|-beta|-rc ]]; then | |
| echo "PRE_RELEASE=true" >> $GITHUB_ENV | |
| else | |
| echo "PRE_RELEASE=false" >> $GITHUB_ENV | |
| fi | |
| - name: Run Makefile to generate assets | |
| run: make all | |
| env: | |
| PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }} | |
| - name: List generated assets | |
| run: ls -lh builds/ | |
| - name: Create Release | |
| uses: docker://antonyurchenko/git-release:v5 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.PAT }} | |
| DRAFT_RELEASE: false | |
| PRE_RELEASE: ${{ env.PRE_RELEASE }} | |
| CHANGELOG_FILE: CHANGELOG.md | |
| with: | |
| args: builds/* |