Skip to content

Commit

Permalink
Merge pull request #173 from dhis2/DEVOPS-324
Browse files Browse the repository at this point in the history
ci: upload stable.json to S3 on PR merge
  • Loading branch information
radnov authored Jul 5, 2024
2 parents c36eac9 + a217c9d commit 1a7b570
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/upload-stable-json.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Upload stable.json to S3

on:
pull_request:
types:
- closed
branches:
- master
paths:
- 'downloads/v1/versions/stable.json'

jobs:
upload:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- name: Upload stable.json to S3
uses: prewk/s3-cp-action@v2
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: eu-west-1
source: './downloads/v1/versions/stable.json'
dest: 's3://releases.dhis2.org/v1/versions/stable.json'

0 comments on commit 1a7b570

Please sign in to comment.