Skip to content

Commit

Permalink
feat: mirror HSTracker.app.zip to S3 bucket in Asia
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Dec 18, 2024
1 parent c1d3dbf commit f7dd949
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/asia-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
release:
types: [released, edited]

permissions:
id-token: write
contents: read

jobs:
build:
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"

0 comments on commit f7dd949

Please sign in to comment.