mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
Update release.yml
This commit is contained in:
parent
4308d7637c
commit
0a0ab96f41
55
.github/workflows/release.yml
vendored
55
.github/workflows/release.yml
vendored
@ -45,52 +45,11 @@ jobs:
|
|||||||
- name: Build armv6
|
- name: Build armv6
|
||||||
run: CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-s -w" -o artifacts/zerobot-plugin-linux-armv6
|
run: CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-s -w" -o artifacts/zerobot-plugin-linux-armv6
|
||||||
|
|
||||||
- name: Upload Release Asset Linux x64
|
- name: Upload binaries to release
|
||||||
id: upload-release-asset-lx64
|
uses: svenstaro/upload-release-action@v2
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
asset_path: ./artifacts/zerobot-plugin-linux-x64
|
file: artifacts/zerobot-plugin-*
|
||||||
asset_name: zerobot-plugin-linux-x64
|
tag: ${{ github.ref }}
|
||||||
asset_content_type: application/octet-stream
|
overwrite: true
|
||||||
- name: Upload Release Asset Linux x86
|
file_glob: true
|
||||||
id: upload-release-asset-lx86
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
|
||||||
asset_path: ./artifacts/zerobot-plugin-linux-x86
|
|
||||||
asset_name: zerobot-plugin-linux-x86
|
|
||||||
asset_content_type: application/octet-stream
|
|
||||||
- name: Upload Release Asset Windows x64
|
|
||||||
id: upload-release-asset-wx64
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
|
||||||
asset_path: ./artifacts/zerobot-plugin-windows-x64.exe
|
|
||||||
asset_name: zerobot-plugin-windows-x64.exe
|
|
||||||
asset_content_type: application/octet-stream
|
|
||||||
- name: Upload Release Asset Windows x86
|
|
||||||
id: upload-release-asset-wx86
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
|
||||||
asset_path: ./artifacts/zerobot-plugin-windows-x86.exe
|
|
||||||
asset_name: zerobot-plugin-windows-x86.exe
|
|
||||||
asset_content_type: application/octet-stream
|
|
||||||
- name: Upload Release Asset ARM64
|
|
||||||
id: upload-release-asset-arm64
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
|
||||||
asset_path: ./artifacts/zerobot-plugin-linux-arm64
|
|
||||||
asset_name: zerobot-plugin-linux-arm64
|
|
||||||
asset_content_type: application/octet-stream
|
|
||||||
- name: Upload Release Asset ARMv6
|
|
||||||
id: upload-release-asset-armv6
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
|
||||||
asset_path: ./artifacts/zerobot-plugin-linux-armv6
|
|
||||||
asset_name: zerobot-plugin-linux-armv6
|
|
||||||
asset_content_type: application/octet-stream
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user