From d24c26016b6e6b431e2f394fc4214e260698327e Mon Sep 17 00:00:00 2001 From: netbenix <36106848+netbenix@users.noreply.github.com> Date: Thu, 18 Nov 2021 18:50:48 +0100 Subject: [PATCH] Update go.yml --- .github/workflows/go.yml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c6c3f4a..d9f9a60 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -2,6 +2,8 @@ name: Go on: push: + tags: + - 'v*' branches: [ master ] pull_request: branches: [ master ] @@ -11,19 +13,28 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Set up Go uses: actions/setup-go@v2 with: go-version: 1.17 - - name: Build run: go build -v ./... - - name: Archive artifacts - uses: actions/upload-artifact@v2 + - name: Create Release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - name: scabiosa - path: | - scabiosa + tag_name: ${{ github.ref }} + release_name: Scabiosa ${{ github.ref }} + draft: false + prerelease: false + - name: Upload Release asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url}} + asset_path: ./scabiosa + asset_name: scabiosa