Skip to content

Fix filenames in publish workflow (#25) #16

Fix filenames in publish workflow (#25)

Fix filenames in publish workflow (#25) #16

Workflow file for this run

name: Publish
on:
push:
tags:
- "v*.*.*"
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
include:
- goos: linux
goarch: amd64
filename: gokart-prompt-linux-amd64
- goos: darwin
goarch: amd64
filename: gokart-prompt-darwin-amd64
- goos: darwin
goarch: arm64
goarm: 7
filename: gokart-prompt-darwin-arm7
- goos: windows
goarch: amd64
filename: gokart-prompt-windows-amd64
env:
CGO_ENABLED: 0
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
GOARM: ${{ matrix.goarm }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Build
run: go build -o gokart ./cmd/gokart.go
- name: Package
run: |
mkdir gokart-prompt
mv gokart gokart.* README.md LICENSE.txt gokart-prompt
tar czvf ${{ matrix.filename }}.tar.gz gokart-prompt
- uses: softprops/action-gh-release@v1
with:
files: ${{ matrix.filename }}.tar.gz
generate_release_notes: true