From 050b6c12cce6158deab448ab0311c6d736fc9ddf Mon Sep 17 00:00:00 2001 From: Sense T Date: Tue, 23 Apr 2024 15:39:41 +0800 Subject: [PATCH] ci-test --- .github/workflows/build_nix.yml | 13 ------------- .github/workflows/go.yml | 4 ++-- 2 files changed, 2 insertions(+), 15 deletions(-) delete mode 100644 .github/workflows/build_nix.yml diff --git a/.github/workflows/build_nix.yml b/.github/workflows/build_nix.yml deleted file mode 100644 index 9a4bc4c..0000000 --- a/.github/workflows/build_nix.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: "Build legacy Nix package on Ubuntu" - -on: - push: - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: cachix/install-nix-action@v26 - - name: Building package - run: nix-build . -A defaultPackage.x86_64-linux diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b06eae5..d4f1473 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -43,7 +43,7 @@ jobs: GOARCH: arm64 run: | mkdir -p recored-ui-${GOOS}-${GOARCH} - go build -trimpath -ldflags "-w -s" -v -o ./recored-ui-${GOOS}-${GOARCH} ./... + go build -trimpath -ldflags "-w -s -X main.Version=${{ github.ref_name }}" -v -o ./recored-ui-${GOOS}-${GOARCH} ./... cp README.md LICENSE recored-ui-${GOOS}-${GOARCH} tar czvf recored-ui-${GOOS}-${GOARCH}.tgz recored-ui-${GOOS}-${GOARCH} @@ -51,7 +51,7 @@ jobs: id: create_release uses: ncipollo/release-action@v1 with: - name: Release ${{ github.ref }} + name: Release ${{ github.ref_name }} - name: Upload Release Asset Linux arm64