You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
719 B
31 lines
719 B
name: Build
|
|
|
|
on: workflow_dispatch
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Go 1.20
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: "1.20"
|
|
id: go
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v2
|
|
with:
|
|
clean: false
|
|
submodules: "recursive"
|
|
- run: |
|
|
git fetch --prune --unshallow --tags
|
|
|
|
- name: Build and Release
|
|
uses: goreleaser/goreleaser-action@v4
|
|
with:
|
|
distribution: goreleaser
|
|
version: latest
|
|
args: release --clean --skip-validate
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} |