fix: use ref_name
Some checks failed
Check / check (push) Failing after 0s

This commit is contained in:
trev 2025-05-17 01:18:40 -04:00
parent 893aa4db51
commit 7ee1cd94dc

View File

@ -30,40 +30,40 @@ jobs:
- name: Check - name: Check
run: nix flake check run: nix flake check
release: # release:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
needs: check # needs: check
steps: # steps:
- name: Checkout # - name: Checkout
uses: actions/checkout@v4 # uses: actions/checkout@v4
- name: Install Nix # - name: Install Nix
uses: cachix/install-nix-action@v31 # uses: cachix/install-nix-action@v31
with: # with:
nix_path: nixpkgs=channel:nixos-unstable # nix_path: nixpkgs=channel:nixos-unstable
- name: Use Cachix # - name: Use Cachix
uses: cachix/cachix-action@v16 # uses: cachix/cachix-action@v16
with: # with:
name: trevstack # name: trevstack
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" # authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Build # - name: Build
run: > # run: >
nix build # nix build
.#trevstack-linux-amd64 # .#trevstack-linux-amd64
.#trevstack-linux-arm64 # .#trevstack-linux-arm64
.#trevstack-linux-arm # .#trevstack-linux-arm
.#trevstack-windows-amd64 # .#trevstack-windows-amd64
.#trevstack-darwin-amd64 # .#trevstack-darwin-amd64
.#trevstack-darwin-arm64 # .#trevstack-darwin-arm64
- name: Release # - name: Release
uses: softprops/action-gh-release@v2 # uses: softprops/action-gh-release@v2
with: # with:
generate_release_notes: true # generate_release_notes: true
files: |- # files: |-
result*/bin/* # result*/bin/*
# https://docs.docker.com/build/ci/github-actions/manage-tags-labels/ # https://docs.docker.com/build/ci/github-actions/manage-tags-labels/
package: package:
@ -86,7 +86,7 @@ jobs:
- name: Set env - name: Set env
run: | run: |
TAG=${{ github.event.release.tag_name }} TAG=${{ github.ref_name }}
VERSION=${TAG#v} VERSION=${TAG#v}
NAME="trevstack:${VERSION}" NAME="trevstack:${VERSION}"