diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7aa2089 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Release + +on: + push: + tags: + - 'v*' + +permissions: + contents: write + packages: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-go@v5 + with: + go-version: 1.22 + - uses: goreleaser/goreleaser-action@v6 + with: + args: release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eaca95d..8904ffd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -63,4 +63,5 @@ jobs: go-version: 1.22 - name: Goreleaser image building test uses: goreleaser/goreleaser-action@v6 - args: release --snapshot + with: + args: release --snapshot diff --git a/goreleaser.yml b/goreleaser.yml index 5b0e6e6..b9ae096 100644 --- a/goreleaser.yml +++ b/goreleaser.yml @@ -1,5 +1,6 @@ project_name: aws-checker env: + - REGISTRY=ghcr.io/chatwork builds: - id: aws-checker main: ./