From 7ee1cd94dc0bc882e46ef7e0cd5743245f776c63 Mon Sep 17 00:00:00 2001 From: trev Date: Sat, 17 May 2025 01:18:40 -0400 Subject: [PATCH] fix: use ref_name --- .github/workflows/release.yaml | 62 +++++++++++++++++----------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 44b025b..cd13ea8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -30,40 +30,40 @@ jobs: - name: Check run: nix flake check - release: - runs-on: ubuntu-latest - needs: check - steps: - - name: Checkout - uses: actions/checkout@v4 + # release: + # runs-on: ubuntu-latest + # needs: check + # steps: + # - name: Checkout + # uses: actions/checkout@v4 - - name: Install Nix - uses: cachix/install-nix-action@v31 - with: - nix_path: nixpkgs=channel:nixos-unstable + # - name: Install Nix + # uses: cachix/install-nix-action@v31 + # with: + # nix_path: nixpkgs=channel:nixos-unstable - - name: Use Cachix - uses: cachix/cachix-action@v16 - with: - name: trevstack - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + # - name: Use Cachix + # uses: cachix/cachix-action@v16 + # with: + # name: trevstack + # authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - name: Build - run: > - nix build - .#trevstack-linux-amd64 - .#trevstack-linux-arm64 - .#trevstack-linux-arm - .#trevstack-windows-amd64 - .#trevstack-darwin-amd64 - .#trevstack-darwin-arm64 + # - name: Build + # run: > + # nix build + # .#trevstack-linux-amd64 + # .#trevstack-linux-arm64 + # .#trevstack-linux-arm + # .#trevstack-windows-amd64 + # .#trevstack-darwin-amd64 + # .#trevstack-darwin-arm64 - - name: Release - uses: softprops/action-gh-release@v2 - with: - generate_release_notes: true - files: |- - result*/bin/* + # - name: Release + # uses: softprops/action-gh-release@v2 + # with: + # generate_release_notes: true + # files: |- + # result*/bin/* # https://docs.docker.com/build/ci/github-actions/manage-tags-labels/ package: @@ -86,7 +86,7 @@ jobs: - name: Set env run: | - TAG=${{ github.event.release.tag_name }} + TAG=${{ github.ref_name }} VERSION=${TAG#v} NAME="trevstack:${VERSION}"