Skip to content

v0.7.7

v0.7.7 #4

Workflow file for this run

name: Go release
#
env:
ACTIONS_STEP_DEBUG: true
#
on:
release:
types: [published]
#
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
#
steps:
- uses: actions/checkout@v3
#
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.18
cache: true
#
- name: Build go scaffold
id: build-go-scaffold
shell: bash
run: |
sudo sh build.sh
#
- name: Upload go-scaffold
uses: actions/upload-artifact@v3
env:
GITHUB_TOKEN: ${{ github.token }}
with:
name: upload-go-scaffold
path: /tmp/bin/go-scaffold.tar.gz
#
- name: Release go-scaffold
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
body: "# Release ${{github.ref}} \n"
files: |
LICENSE
/tmp/bin/go-scaffold.tar.gz