From 08bde027156f1cb380845f35bf34d7c653f2f2b5 Mon Sep 17 00:00:00 2001 From: Brian McGee Date: Fri, 13 Sep 2024 15:22:18 +0100 Subject: [PATCH] feat: add release github workflow --- .github/workflows/release.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..1624d1d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,33 @@ +name: goreleaser + +on: + push: + # run only against tags + tags: + - "v*" + +permissions: + contents: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: cachix/install-nix-action@V27 + with: + extra_nix_config: | + accept-flake-config = true + experimental-features = nix-command flakes + - name: Enter Nix Devshell + run: | + nix develop + - name: Run goreleaser + uses: goreleaser/goreleaser-action@v6 + with: + args: release --clean + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}