Update ci.yml
This commit is contained in:
parent
e75c33ddab
commit
f0a52f0b0e
|
@ -55,6 +55,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
|
||||||
echo "::set-output name=status::success"
|
echo "::set-output name=status::success"
|
||||||
|
|
||||||
- name: Generate release tag
|
- name: Generate release tag
|
||||||
|
@ -71,8 +72,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 }}
|
||||||
body_path: release.txt
|
files: ${FIRMWARE}
|
||||||
files: /opt/openwrt_packit/output/*
|
|
||||||
|
|
||||||
- name: Delete workflow runs
|
- name: Delete workflow runs
|
||||||
uses: GitRML/delete-workflow-runs@main
|
uses: GitRML/delete-workflow-runs@main
|
||||||
|
|
Loading…
Reference in New Issue