diff --git a/.github/workflows/asia-release.yml b/.github/workflows/asia-release.yml new file mode 100644 index 000000000..5888d5925 --- /dev/null +++ b/.github/workflows/asia-release.yml @@ -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/fetch-gh-release-asset@v1.1.2 + 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"