Skip to content

Commit

Permalink
Merge pull request #4 from virtualzone/github-build-workflow
Browse files Browse the repository at this point in the history
Added tag and release action
  • Loading branch information
virtualzone authored Mar 27, 2022
2 parents 3085271 + 2b4be06 commit 1867b78
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,20 @@ jobs:
go-version: '^1.18'
- name: Run build
run: make
- name: Set version env
run: echo "CI_VERSION=$(cat VERSION | awk NF)" >> $GITHUB_ENV
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ env.CI_VERSION }}
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ env.CI_VERSION }}
name: ${{ env.CI_VERSION }}
artifacts: "build/onedrive-uploader_*"


0 comments on commit 1867b78

Please sign in to comment.