-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create create_release.yml testing will delete later
- Loading branch information
1 parent
47c36a6
commit 6ad6260
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version (eq.: 8.0.0.1)' | ||
required: true | ||
downloadLink: | ||
description: 'Url to the signed MSI' | ||
required: true | ||
isMandatory: | ||
description: 'true or false' | ||
required: true | ||
phasingStrategy: | ||
description: 'Optional flag can be left blank' | ||
required: false | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up AWS CLI | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: 'your-s3-bucket-region' | ||
|
||
- name: Create JSON file | ||
run: echo "{\"version\":\"${{ github.event.inputs.version }}\",\"downloadLink\":\"${{ github.event.inputs.downloadLink }}\",\"isMandatory\":\"${{ github.event.inputs.isMandatory }}\",\"phasingStrategy\":\"${{ github.event.inputs.phasingStrategy }}\"}" > data.json | ||
|
||
- name: Upload to S3 | ||
run: aws s3 cp data.json s3://windows-releases-bucket/ |