Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Release asset action added
Browse files Browse the repository at this point in the history
  • Loading branch information
gaiksaya committed May 5, 2020
1 parent dc3b3d0 commit 04bec65
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,51 @@ jobs:
aws s3 cp job-scheduler-artifacts/*.rpm $s3_path/rpms/opendistro-job-scheduler/
aws cloudfront create-invalidation --distribution-id ${{ secrets.DISTRIBUTION_ID }} --paths '/downloads/*'
# Creating release draft
- name: Create Github Draft Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ env.TAG_VERSION }}
draft: true
prerelease: false

# Upload the release with .zip as asset
- name: Upload Release Asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_name: job-scheduler-artifacts.zip
asset_path: job-scheduler-artifacts_zip
asset_content_type: application/zip

# Upload the release with .rpm as asset
- name: Upload Release Asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_name: job-scheduler-artifacts.rpm
asset_path: job-scheduler-artifacts_rpm
asset_content_type: application/zip

# Upload the release with .deb as asset
- name: Upload Release Asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_name: job-scheduler-artifacts.deb
asset_path: job-scheduler-artifacts_deb
asset_content_type: application/zip

- name: Upload Workflow Artifacts
uses: actions/upload-artifact@v1
with:
Expand Down

0 comments on commit 04bec65

Please sign in to comment.