Skip to content

Commit

Permalink
Merge pull request #29 from mumoshu/release-automation
Browse files Browse the repository at this point in the history
Add release workflow
  • Loading branch information
cw-atkhry authored Nov 5, 2024
2 parents 2e7b6e6 + 9df9a6b commit e3deb25
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 }}
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
project_name: aws-checker
env:
- REGISTRY=ghcr.io/chatwork
builds:
- id: aws-checker
main: ./
Expand Down

0 comments on commit e3deb25

Please sign in to comment.