Skip to content

TPGZ Release Automation #16

TPGZ Release Automation

TPGZ Release Automation #16

Workflow file for this run

name: TPGZ Release Automation
on:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Download latest release patches
run: curl -s https://api.github.com/repos/zsrtp/tpgz/releases/latest | grep "http.*patch" | cut -d ":" -f 2,3 | tr -d \ \" | wget -qi - --directory-prefix patches/
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: ${{ secrets.AWS_REGION }}
role-duration-seconds: 1200
role-session-name: GitHubActions
- name: Sync directory to S3
run: |
aws s3 sync patches/ s3://${{ secrets.AWS_S3_BUCKET }}/patches/ --delete --acl public-read