Skip to content

fix: add GITHUB_TOKEN to env in release step #3

fix: add GITHUB_TOKEN to env in release step

fix: add GITHUB_TOKEN to env in release step #3

Workflow file for this run

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: Release
run: |
nix develop --command bash -c "goreleaser release --clean"
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}