Tar beforce upload to release

This commit is contained in:
lucheng
2024-07-03 10:30:23 +08:00
parent cb446b7a1c
commit 8311582159

View File

@@ -27,6 +27,9 @@ jobs:
- name: Run build - name: Run build
run: make run: make
- name: Tar files
run: tar -cvf virtuallan-binary.tar virtuallan virtuallan.exe
- name: Create Release - name: Create Release
id: create_release id: create_release
uses: actions/create-release@v1 uses: actions/create-release@v1
@@ -39,21 +42,12 @@ jobs:
prerelease: false prerelease: false
- name: Upload Release Asset linux - name: Upload Release Asset linux
id: upload-release-asset-linux id: upload-release-asset
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
env: env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
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 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_path: ./virtuallan-binary.tar
asset_name: virtuallan asset_name: virtuallan-binary.tar
asset_content_type: application/x-tar
- 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