-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (36 loc) · 961 Bytes
/
release-v1.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: goreleaser
on:
push:
tags:
- "v1.*"
jobs:
goreleaser:
permissions:
contents: write
id-token: write
statuses: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
cache-dependency-path: go.sum
- name: Configure AWS Credentials
uses: fuller-inc/actions-aws-assume-role@v1
with:
aws-region: ap-northeast-1
role-to-assume: arn:aws:iam::445285296882:role/rpm-repository-users-RdsMySQLDeployRole-XDibbGv88soX
role-session-tagging: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: "~> v2"
args: release --clean
workdir: .
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}