Skip to content

Commit

Permalink
updated the github action to build a new release
Browse files Browse the repository at this point in the history
  • Loading branch information
twobitEDD committed Mar 7, 2024
1 parent 156604f commit 2cfa08b
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.20'
check-latest: true
- uses: technote-space/[email protected]
id: git_diff
Expand All @@ -32,4 +32,19 @@ jobs:
*.toml
- run: |
make build
if: env.GIT_DIFF
if: env.GIT_DIFF
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

0 comments on commit 2cfa08b

Please sign in to comment.