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
|
- 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}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user