This commit is contained in:
parent
893aa4db51
commit
7ee1cd94dc
62
.github/workflows/release.yaml
vendored
62
.github/workflows/release.yaml
vendored
@ -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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user