Skip to content

Commit

Permalink
Add steps to upload assets with the release
Browse files Browse the repository at this point in the history
  • Loading branch information
aydesai committed Jun 3, 2021
1 parent 7614621 commit e9302d9
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/kubeflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Publish
run: dotnet publish KubeJobs/KubeJobs.csproj -c Release -o winoutput --self-contained -r win-x64

- name: action-zip
- name: Zip Win output folder
uses: montudor/action-zip@v0.1.1
with:
args: zip -qq -r ./kubernetes-batchjob-container-win.zip winoutput
Expand Down Expand Up @@ -73,3 +73,25 @@ jobs:
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload Release Asset Linux
id: upload-release-asset-linux
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./kubernetes-batchjob-container-linux.tar.gz
asset_name: kubernetes-batchjob-container-linux.tar.gz
asset_content_type: application/zip

- name: Upload Release Asset Win
id: upload-release-asset-win
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./kubernetes-batchjob-container-win.zip
asset_name: kubernetes-batchjob-container-win.zip
asset_content_type: application/zip

0 comments on commit e9302d9

Please sign in to comment.