Trigger security scan #35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: semantic-release POC | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.24.3' | |
| - name: semantic-release | |
| uses: cycjimmy/semantic-release-action@v4 | |
| id: semrel | |
| with: | |
| extra_plugins: | | |
| @semantic-release/changelog@^6 | |
| @semantic-release/git@^10 | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| - name: Run GoReleaser | |
| if: steps.semrel.outputs.new_release_published == 'true' | |
| uses: goreleaser/goreleaser-action@v6 | |
| with: | |
| distribution: goreleaser | |
| version: '~> v2' | |
| args: release --clean | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
| - name: 확인 | |
| if: steps.semrel.outputs.new_release_published == 'true' | |
| run: echo "새 버전 ${{ steps.semrel.outputs.new_release_version }} 생성 및 GoReleaser로 빌드 완료" |