Skip to content

Commit

Permalink
Create create_release.yml testing will delete later
Browse files Browse the repository at this point in the history
  • Loading branch information
BorderKeeper authored Nov 13, 2023
1 parent 47c36a6 commit 6ad6260
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/create_release.yml
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/

0 comments on commit 6ad6260

Please sign in to comment.