mirror of
https://github.com/lucheng0127/virtuallan.git
synced 2025-09-26 20:51:11 +08:00
Tar beforce upload to release
This commit is contained in:
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@@ -27,6 +27,9 @@ jobs:
|
||||
- name: Run build
|
||||
run: make
|
||||
|
||||
- name: Tar files
|
||||
run: tar -cvf virtuallan-binary.tar virtuallan virtuallan.exe
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
@@ -39,21 +42,12 @@ jobs:
|
||||
prerelease: false
|
||||
|
||||
- name: Upload Release Asset linux
|
||||
id: upload-release-asset-linux
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
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: ./virtuallan
|
||||
asset_name: virtuallan
|
||||
|
||||
- name: Upload Release Asset windows
|
||||
id: upload-release-asset-windows
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
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: ./virtuallan.exe
|
||||
asset_name: virtuallan.exe
|
||||
asset_path: ./virtuallan-binary.tar
|
||||
asset_name: virtuallan-binary.tar
|
||||
asset_content_type: application/x-tar
|
||||
|
Reference in New Issue
Block a user