Skip to content

Commit

Permalink
git action
Browse files Browse the repository at this point in the history
  • Loading branch information
lizongying committed Mar 13, 2024
1 parent 641b7a6 commit 18e6768
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:

permissions:
contents: write
packages: write

steps:
- name: Checkout code
Expand Down Expand Up @@ -59,6 +58,7 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./releases/my-tv-server_linux_amd64
asset_name: my-tv-server_linux_amd64-${{ github.ref_name }}
asset_content_type: application/octet-stream

- name: Upload Release Asset linux_arm64
uses: actions/upload-release-asset@v1
Expand All @@ -68,6 +68,7 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./releases/my-tv-server_linux_arm64
asset_name: my-tv-server_linux_arm64-${{ github.ref_name }}
asset_content_type: application/octet-stream

- name: Upload Release Asset darwin_amd64
uses: actions/upload-release-asset@v1
Expand All @@ -77,6 +78,7 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./releases/my-tv-server_darwin_amd64
asset_name: my-tv-server_darwin_amd64-${{ github.ref_name }}
asset_content_type: application/octet-stream

- name: Upload Release Asset darwin_arm64
uses: actions/upload-release-asset@v1
Expand All @@ -86,6 +88,7 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./releases/my-tv-server_darwin_arm64
asset_name: my-tv-server_darwin_arm64-${{ github.ref_name }}
asset_content_type: application/octet-stream

- name: Upload Release Asset windows_amd64
uses: actions/upload-release-asset@v1
Expand All @@ -95,6 +98,7 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./releases/my-tv-server_windows_amd64.exe
asset_name: my-tv-server_windows_amd64-${{ github.ref_name }}.exe
asset_content_type: application/octet-stream


build-docker:
Expand Down

0 comments on commit 18e6768

Please sign in to comment.