2022-03-06 18:44:28 +00:00
|
|
|
name: Release
|
|
|
|
|
2022-03-06 18:40:02 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- v[0-9]+.*
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
create-release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-13 02:32:32 +00:00
|
|
|
- uses: actions/checkout@v2
|
2022-03-06 18:40:02 +00:00
|
|
|
- uses: taiki-e/create-gh-release-action@v1
|
|
|
|
with:
|
|
|
|
title: Hilbish $tag
|
|
|
|
changelog: CHANGELOG.md
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
releases-matrix:
|
|
|
|
name: Build Release Binary
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
goos: [linux, windows, darwin]
|
|
|
|
goarch: ["386", amd64, arm64]
|
|
|
|
exclude:
|
|
|
|
- goarch: "386"
|
|
|
|
goos: darwin
|
|
|
|
- goarch: arm64
|
|
|
|
goos: windows
|
|
|
|
steps:
|
2022-04-30 16:08:39 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-03-13 02:30:16 +00:00
|
|
|
with:
|
2022-04-30 16:08:39 +00:00
|
|
|
submodules: true
|
2022-12-15 01:31:11 +00:00
|
|
|
fetch-depth: 0
|
2022-12-02 13:39:22 +00:00
|
|
|
- name: Download Task
|
2022-12-02 13:42:06 +00:00
|
|
|
run: 'sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d'
|
2022-03-06 19:04:45 +00:00
|
|
|
- uses: wangyoucao577/go-release-action@v1.25
|
2022-03-06 18:40:02 +00:00
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
goos: ${{ matrix.goos }}
|
|
|
|
goarch: ${{ matrix.goarch }}
|
2022-12-02 13:39:22 +00:00
|
|
|
build_command: task
|
2022-03-06 18:40:02 +00:00
|
|
|
binary_name: hilbish
|
2022-04-30 16:08:39 +00:00
|
|
|
extra_files: LICENSE README.md CHANGELOG.md .hilbishrc.lua nature libs docs emmyLuaDocs
|