--- name: Release on: push: tags: - "*" # triggers only if push new tag version workflow_dispatch: jobs: goreleaser: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 0 - uses: cachix/install-nix-action@v16 - name: Run goreleaser run: nix develop --command -- goreleaser release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}