-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yan Zarytovsky <[email protected]>
- Loading branch information
Showing
1 changed file
with
16 additions
and
10 deletions.
There are no files selected for viewing
26 changes: 16 additions & 10 deletions
26
.github/workflows/build-all.yaml → .github/workflows/release.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,37 @@ | ||
name: build | ||
name: release | ||
|
||
on: push | ||
on: | ||
create: | ||
tags: | ||
- v* | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
release: | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # To use `git describe --tags` | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
go-version: "1.22" | ||
|
||
- name: Setup Task | ||
uses: arduino/setup-task@v2 | ||
- name: Build all | ||
run: task build:dist:all | ||
|
||
- name: Build and package | ||
run: task build-and-package | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: | | ||
README.md | ||
LICENSE | ||
dist/**/* | ||
dist/**/*.tar.gz | ||
dist/**/*.tar.gz.sha256sum |