mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
🚧 测试 action
This commit is contained in:
parent
2c7400d9d8
commit
c7b86e767e
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
@ -35,9 +35,6 @@ jobs:
|
|||||||
- name: Tidy Go modules
|
- name: Tidy Go modules
|
||||||
run: go mod tidy
|
run: go mod tidy
|
||||||
|
|
||||||
- name: Build linux
|
|
||||||
run: export GOOS=linux; export GOARCH=amd64; export CGO_ENABLED=1; go build -ldflags="-s -w -extldflags '-static'" -o artifacts/ZeroBot-Plugin-windows.exe
|
|
||||||
|
|
||||||
- name: Build windows
|
- name: Build windows
|
||||||
run: export GOOS=windows; export GOARCH=amd64; export CGO_ENABLED=1; go build -ldflags="-s -w -extldflags '-static'" -o artifacts/ZeroBot-Plugin-linux
|
run: export GOOS=windows; export GOARCH=amd64; export CGO_ENABLED=1; go build -ldflags="-s -w -extldflags '-static'" -o artifacts/ZeroBot-Plugin-linux
|
||||||
|
|
||||||
@ -52,17 +49,8 @@ jobs:
|
|||||||
- name: Gets latest created release info
|
- name: Gets latest created release info
|
||||||
id: latest_release_info
|
id: latest_release_info
|
||||||
uses: jossef/action-latest-release-info@v1.1.0
|
uses: jossef/action-latest-release-info@v1.1.0
|
||||||
|
|
||||||
- name: Upload linux asset to github release page
|
|
||||||
id: upload-release-asset
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.latest_release_info.outputs.upload_url }}
|
|
||||||
asset_path: ./artifacts/ZeroBot-Plugin-linux
|
|
||||||
asset_name: ZeroBot-Plugin-linux
|
|
||||||
asset_content_type: application/zip
|
|
||||||
|
|
||||||
- name: Upload windows asset to github release page
|
- name: Upload asset to github release page
|
||||||
id: upload-release-asset
|
id: upload-release-asset
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user