Skip to content

goreleaser

goreleaser #90

Workflow file for this run

name: goreleaser
on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:
jobs:
goreleaser:
runs-on: ubuntu-20.04
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
-
name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21
-
name: Install upx
run: sudo apt install upx -y
continue-on-error: true
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --rm-dist --skip-validate
workdir: v2/
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOPATH: "/home/runner/go"
- name: Upload assets
uses: actions/upload-artifact@v3
with:
name: gogo_archive
path: |
v2/dist/gogo*
tools/*
README.md