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