Create LICENSE #8
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: Release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 'stable' | |
- name: Run Semantic Release | |
id: release | |
uses: cycjimmy/semantic-release-action@v4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Get release version | |
if: steps.release.outputs.new_release_published == 'true' | |
run: echo "RELEASE_VERSION=$(echo ${{ steps.release.outputs.new_release_version }})" >> $GITHUB_ENV | |
- name: Build with version | |
env: | |
VERSION: ${{ env.RELEASE_VERSION }} | |
run: bash ./scripts/build.sh | |
- name: Upload release assets | |
if: steps.release.outputs.new_release_published == 'true' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: binaries | |
path: dist/ | |
- name: Create GitHub Release | |
if: steps.release.outputs.new_release_published == 'true' | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: dist/* | |
tag_name: "v${{ env.RELEASE_VERSION }}" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |