Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DeanHnter authored Feb 6, 2024
1 parent dae2995 commit 0263603
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Go

on:
push:
tags:
- '*'
branches: [ "develop" ]

permissions:
contents: write
Expand Down Expand Up @@ -31,16 +30,20 @@ jobs:
- name: Execute Task
run: task build

- name: Generate Unique Tag
id: uniquetag
run: echo "RELEASE_TAG=$(date +'%Y%m%d%H%M%S')-$(git rev-parse --short HEAD)" >> $GITHUB_ENV

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
draft: false
prerelease: false
tag_name: ${{ env.RELEASE_TAG }}
release_name: Release ${{ env.RELEASE_TAG }}
draft: false
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
Expand Down

0 comments on commit 0263603

Please sign in to comment.