Skip to content

Commit

Permalink
[github] Update release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Yan Zarytovsky <[email protected]>
  • Loading branch information
asviel committed Mar 13, 2024
1 parent 357e19b commit 70bde56
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/build-all.yaml → .github/workflows/release.yaml
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

0 comments on commit 70bde56

Please sign in to comment.