From 2cd7c70a7cc0e9ec033272ac3978bb94cd01de63 Mon Sep 17 00:00:00 2001 From: "kuma.jung" Date: Sat, 21 Feb 2026 23:20:09 +0900 Subject: [PATCH] ci: release artifacts to S3 on tag --- .github/workflows/release-on-tag.yml | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/release-on-tag.yml 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