Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mgqnfoqv7k2w
AutoBuildImmortalWrt
Commits
f8ccf368
Unverified
Commit
f8ccf368
authored
Dec 08, 2024
by
wukongdaily
Committed by
GitHub
Dec 08, 2024
Browse files
Update build.yml
parent
902cc80d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
.github/workflows/build.yml
.github/workflows/build.yml
+8
-4
No files found.
.github/workflows/build.yml
View file @
f8ccf368
...
@@ -69,7 +69,11 @@ jobs:
...
@@ -69,7 +69,11 @@ jobs:
-
name
:
Upload firmware to GitHub Release
-
name
:
Upload firmware to GitHub Release
uses
:
actions/upload-release-asset@v1
uses
:
actions/upload-release-asset@v1
with
:
with
:
url
:
${{ steps.create_release.outputs.upload_url }}
upload_url
:
${{ steps.create_release.outputs.upload_url }}
# 使用正确的上传 URL
asset_path
:
${{ env.firmware_paths }}
# 直接传递固件路径
asset_path
:
${{ env.firmware_paths }}
# 传递固件文件路径
asset_name
:
firmware.img.gz
# 文件名会自动根据文件类型选择
asset_name
:
${{ env.firmware_name }}
# 使用提取的文件名
asset_content_type
:
application/gzip
asset_content_type
:
application/gzip
# 固件类型
env
:
# 提取文件名
firmware_name=$(basename "${{ env.firmware_paths }}")
echo "firmware_name=$firmware_name" >> $GITHUB_ENV
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment