diff --git a/.github/workflows/release-on-tag.yml b/.github/workflows/release-on-tag.yml new file mode 100644 index 00000000..69e6ab65 --- /dev/null +++ b/.github/workflows/release-on-tag.yml @@ -0,0 +1,36 @@ +name: Release On Tag + +on: + push: + tags: + - 'v*' + workflow_dispatch: + +permissions: + contents: read + id-token: write + +jobs: + release: + runs-on: ubuntu-latest + env: + AWS_DEFAULT_REGION: ap-northeast-2 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: '1.26.x' + cache: true + + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/gitaction + aws-region: ${{ env.AWS_DEFAULT_REGION }} + + - name: Build and upload artifacts to S3 + run: make release