Update go.yml
This commit is contained in:
parent
95fab7d71c
commit
d24c26016b
1 changed files with 18 additions and 7 deletions
25
.github/workflows/go.yml
vendored
25
.github/workflows/go.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Reference in a new issue