Skip to content

ci: fix

ci: fix #98

Workflow file for this run

name: Build
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- v*.*.* # Push events to v1.0, v1.1, and v1.9 tags
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '^1.21.4' # The Go version to download (if necessary) and use.
- run: |
go install github.com/goreleaser/goreleaser@latest
goreleaser release --clean -f .goreleaser_${{ matrix.os }}.yaml
- uses: actions/upload-artifact@v3
with:
name: artifact
path: |
dist/*.tar.gz
dist/*.zip
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- name: Generate checksum
uses: jmgilman/actions-generate-checksum@v1
with:
patterns: |
artifact/*/*
- name: GH Release
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
artifact/*/*