ci: experiment with deploy on push #3
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
on: | |
push: | |
release: | |
types: [released, edited] | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Download release asset | |
uses: dsaltares/[email protected] | |
with: | |
version: ${{ github.ref }} | |
file: 'HSTracker.app.zip' | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: ${{ secrets.AWS_ASIA_DEPLOY_ROLE_ARN }} | |
aws-region: ap-east-1 | |
- name: Publish | |
run: aws s3 sync HSTracker.app.zip "s3://${{ secrets.AWS_S3_BUCKET }}/hstracker/HSTracker.app.zip" |