Update ci.yml

This commit is contained in:
序列号 2023-03-19 19:57:50 +08:00 committed by GitHub
parent 4e7c96a19e
commit 14c24b5208
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -54,6 +54,7 @@ jobs:
export LD_FLAGS="-w -s -X main.VERSION=unknown" export LD_FLAGS="-w -s -X main.VERSION=unknown"
go mod tidy go mod tidy
go build -o "output/$BINARY_NAME" -trimpath -ldflags "$LD_FLAGS" ./ go build -o "output/$BINARY_NAME" -trimpath -ldflags "$LD_FLAGS" ./
echo "FIRMWARE=$PWD/output/*" >> $GITHUB_ENV
- name: Generate release tag - name: Generate release tag
id: tag id: tag
@ -69,7 +70,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: ${{ steps.tag.outputs.release_tag }} tag_name: ${{ steps.tag.outputs.release_tag }}
files: ${{ env.FIRMWARE/* }} files: ${{ env.FIRMWARE }}
- name: Delete workflow runs - name: Delete workflow runs
uses: GitRML/delete-workflow-runs@main uses: GitRML/delete-workflow-runs@main