Skip to content

devopsmastertest lesson 2 (#81) #71

devopsmastertest lesson 2 (#81)

devopsmastertest lesson 2 (#81) #71

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
container: golang:1.22
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Cache deps
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Vet
run: |
go vet ./...
- name: Compile all
run: |
make all
- name: Release artifacts
uses: ncipollo/release-action@v1
with:
artifacts: "bin/*"