Skip to content

Merge pull request #16 from onetwotrip/GH-6-fix #3

Merge pull request #16 from onetwotrip/GH-6-fix

Merge pull request #16 from onetwotrip/GH-6-fix #3

Workflow file for this run

name: Go
on:
push:
tags:
- '*'
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Build
run: go build
- name: Prepare files for release
run: |
touch shaker_${{github.ref_name}}_linux-amd64.tar.gz
mkdir shaker_${{github.ref_name}}_linux-amd64
mv shaker shaker_${{github.ref_name}}_linux-amd64/
tar -czf shaker_${{github.ref_name}}_linux-amd64.tar.gz --exclude='./.*' --exclude=shaker_${{github.ref_name}}_linux-amd64.tar.gz shaker_${{github.ref_name}}_linux-amd64
- uses: ncipollo/[email protected]
with:
name: Shaker_release_${{github.ref_name}}
artifacts: "shaker_${{github.ref_name}}_linux-amd64.tar.gz"
token: ${{ secrets.GITHUB_TOKEN }}