Merge pull request #24 from socotra/release/v.0.0.9 #10
This file contains 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: Tag release | |
on: | |
push: | |
branches: [internal/master] | |
jobs: | |
tag_release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
packages: write | |
outputs: | |
release_version: ${{ steps.outputs.outputs.release_version }} | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v2 | |
- name: Initialize mandatory git config | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email [email protected] | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22' | |
cache: true | |
- name: Extract and setup release information | |
run: | | |
releaseVersion=`cat VERSION` | |
export RELEASE_VERSION=$releaseVersion | |
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV | |
- name: Build using Makefile | |
run: make build GIT_DESCRIBE=${{ env.RELEASE_VERSION }} | |
- name: Create GitHub Release and Upload Artifacts | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ env.RELEASE_VERSION }} | |
name: Release ${{ env.RELEASE_VERSION }} | |
draft: false | |
prerelease: false | |
generateReleaseNotes: true | |
artifacts: dist/* |