Skip to content

Commit 58a9baa

Browse files
committed
chore: add release
1 parent ad35f32 commit 58a9baa

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

.github/workflows/release.yaml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,31 @@
11
name: release
22

33
on:
4-
pull_request:
54
push:
6-
# run only against tags
7-
tags:
8-
- "*"
5+
branches:
6+
- main
97

108
permissions:
119
contents: write
1210
packages: write
1311
id-token: write
12+
pull-requests: write
1413

1514
jobs:
1615

17-
goreleaser:
16+
release-please:
1817
runs-on: ubuntu-latest
18+
outputs:
19+
release_created: ${{ steps.release.outputs.release_created }}
20+
steps:
21+
- uses: googleapis/release-please-action@v4
22+
id: release
23+
with:
24+
release-type: go
25+
26+
go-releaser:
27+
runs-on: ubuntu-latest
28+
if: ${{ needs.release-please.outputs.release_created == 'true' }}
1929
steps:
2030

2131
- name: Checkout
@@ -28,16 +38,17 @@ jobs:
2838
with:
2939
go-version-file: go.mod
3040

41+
- name: Login to GitHub Container Registry
42+
uses: docker/login-action@v3
43+
with:
44+
registry: ghcr.io
45+
username: ${{ github.actor }}
46+
password: ${{ secrets.GITHUB_TOKEN }}
47+
3148
- name: Run GoReleaser
3249
uses: goreleaser/goreleaser-action@v6
3350
with:
3451
version: "~> v2"
3552
args: release --clean
3653
env:
3754
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
39-
- name: Upload assets
40-
uses: actions/upload-artifact@v4
41-
with:
42-
name: firebolt-mcp-server
43-
path: dist/*

0 commit comments

Comments
 (0)