Skip to content

Commit e9302d9

Browse files
committed
Add steps to upload assets with the release
1 parent 7614621 commit e9302d9

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/kubeflow.yml

+23-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Publish
4040
run: dotnet publish KubeJobs/KubeJobs.csproj -c Release -o winoutput --self-contained -r win-x64
4141

42-
- name: action-zip
42+
- name: Zip Win output folder
4343
uses: montudor/[email protected]
4444
with:
4545
args: zip -qq -r ./kubernetes-batchjob-container-win.zip winoutput
@@ -73,3 +73,25 @@ jobs:
7373
release_name: Release ${{ github.ref }}
7474
draft: false
7575
prerelease: false
76+
77+
- name: Upload Release Asset Linux
78+
id: upload-release-asset-linux
79+
uses: actions/upload-release-asset@v1
80+
env:
81+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82+
with:
83+
upload_url: ${{ steps.create_release.outputs.upload_url }}
84+
asset_path: ./kubernetes-batchjob-container-linux.tar.gz
85+
asset_name: kubernetes-batchjob-container-linux.tar.gz
86+
asset_content_type: application/zip
87+
88+
- name: Upload Release Asset Win
89+
id: upload-release-asset-win
90+
uses: actions/upload-release-asset@v1
91+
env:
92+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
93+
with:
94+
upload_url: ${{ steps.create_release.outputs.upload_url }}
95+
asset_path: ./kubernetes-batchjob-container-win.zip
96+
asset_name: kubernetes-batchjob-container-win.zip
97+
asset_content_type: application/zip

0 commit comments

Comments
 (0)