From f0a52f0b0e5dd97c7534bb250b7e86a245e4ea88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=8F=E5=88=97=E5=8F=B7?= <2402324010@qq.com> Date: Sun, 19 Mar 2023 19:26:24 +0800 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1fafe1e..b1be088 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,6 +55,7 @@ jobs: export LD_FLAGS="-w -s -X main.VERSION=unknown" go mod tidy go build -o "output/$BINARY_NAME" -trimpath -ldflags "$LD_FLAGS" ./ + echo "FIRMWARE=$PWD/output" >> $GITHUB_ENV echo "::set-output name=status::success" - name: Generate release tag @@ -71,8 +72,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ steps.tag.outputs.release_tag }} - body_path: release.txt - files: /opt/openwrt_packit/output/* + files: ${FIRMWARE} - name: Delete workflow runs uses: GitRML/delete-workflow-runs@main