2021-08-21 01:15:20 +08:00
|
|
|
---
|
2022-11-03 18:30:36 +08:00
|
|
|
name: Release
|
2021-06-13 19:13:17 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
2021-10-22 03:18:50 +08:00
|
|
|
- "*" # triggers only if push new tag version
|
2021-08-21 01:37:15 +08:00
|
|
|
workflow_dispatch:
|
2021-06-13 19:13:17 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
goreleaser:
|
2022-12-05 16:10:51 +08:00
|
|
|
runs-on: ubuntu-latest
|
2021-06-13 19:13:17 +08:00
|
|
|
steps:
|
2021-10-22 03:18:50 +08:00
|
|
|
- name: Checkout
|
2022-11-04 17:40:39 +08:00
|
|
|
uses: actions/checkout@v3
|
2021-06-13 19:13:17 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-10-22 01:56:36 +08:00
|
|
|
|
2022-12-05 16:10:51 +08:00
|
|
|
- uses: cachix/install-nix-action@v16
|
|
|
|
|
|
|
|
- name: Run goreleaser
|
2023-04-20 03:50:03 +08:00
|
|
|
run: nix develop --command -- goreleaser release --clean
|
2021-06-13 19:13:17 +08:00
|
|
|
env:
|
2021-08-21 01:15:20 +08:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|