|
31 | 31 | if: ${{ steps.release.outputs.release_created }}
|
32 | 32 | run: |
|
33 | 33 | env GOOS=linux GOARCH=amd64 go build -ldflags "-X 'main.Version=${{ steps.release.outputs.tag_name }}'" -o bin/runpodctl-linux-amd .
|
| 34 | + env GOOS=darwin GOARCH=amd64 go build -ldflags "-X 'main.Version=${{ steps.release.outputs.tag_name }}'" -o bin/runpodctl-darwin-amd . |
34 | 35 | env GOOS=darwin GOARCH=arm64 go build -ldflags "-X 'main.Version=${{ steps.release.outputs.tag_name }}'" -o bin/runpodctl-darwin-arm .
|
| 36 | + env GOOS=windows GOARCH=amd64 go build -ldflags "-X 'main.Version=${{ steps.release.outputs.tag_name }}'" -o bin/runpodctl-win-amd . |
35 | 37 |
|
36 |
| - - name: Upload release binary |
| 38 | + - name: upload linux amd64 release binary |
37 | 39 | if: ${{ steps.release.outputs.release_created }}
|
38 | 40 | uses: actions/upload-release-asset@v1.0.2
|
39 | 41 | env:
|
|
43 | 45 | asset_path: bin/runpodctl-linux-amd
|
44 | 46 | asset_name: runpodctl-linux-amd
|
45 | 47 | asset_content_type: application/octet-stream
|
46 |
| - - name: Upload release binary |
| 48 | + - name: upload darwin amd64 release binary |
| 49 | + if: ${{ steps.release.outputs.release_created }} |
| 50 | + uses: actions/upload-release-asset@v1.0.2 |
| 51 | + env: |
| 52 | + GITHUB_TOKEN: ${{ github.token }} |
| 53 | + with: |
| 54 | + upload_url: ${{ steps.release.outputs.upload_url }} |
| 55 | + asset_path: bin/runpodctl-darwin-amd |
| 56 | + asset_name: runpodctl-darwin-amd |
| 57 | + asset_content_type: application/octet-stream |
| 58 | + - name: upload darwin arm64 release binary |
47 | 59 | if: ${{ steps.release.outputs.release_created }}
|
48 | 60 | uses: actions/upload-release-asset@v1.0.2
|
49 | 61 | env:
|
|
53 | 65 | asset_path: bin/runpodctl-darwin-arm
|
54 | 66 | asset_name: runpodctl-darwin-arm
|
55 | 67 | asset_content_type: application/octet-stream
|
| 68 | + - name: upload windows amd64 release binary |
| 69 | + if: ${{ steps.release.outputs.release_created }} |
| 70 | + uses: actions/upload-release-asset@v1.0.2 |
| 71 | + env: |
| 72 | + GITHUB_TOKEN: ${{ github.token }} |
| 73 | + with: |
| 74 | + upload_url: ${{ steps.release.outputs.upload_url }} |
| 75 | + asset_path: bin/runpodctl-win-amd |
| 76 | + asset_name: runpodctl-win-amd |
| 77 | + asset_content_type: application/octet-stream |
0 commit comments