This repository was archived by the owner on Oct 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +88
-42
lines changed
Expand file tree Collapse file tree 4 files changed +88
-42
lines changed Original file line number Diff line number Diff line change 1+ issuer : https://token.actions.githubusercontent.com
2+ subject_pattern : " repo:liatrio/fastmcp-github-oauth:ref:refs/heads/main"
3+
4+ permissions :
5+ contents : write
Original file line number Diff line number Diff line change 1- name : Release
1+ name : CI
22
33on :
4- push :
5- tags :
6- - ' v*'
74 pull_request :
85 branches :
96 - main
4643 args : build --snapshot --clean
4744 env :
4845 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49-
50- release :
51- needs : test
52- if : startsWith(github.ref, 'refs/tags/v')
53- runs-on : ubuntu-latest
54- permissions :
55- contents : write
56- packages : write
57-
58- steps :
59- - uses : actions/checkout@v4
60- with :
61- fetch-depth : 0
62-
63- - name : Install uv
64- uses : astral-sh/setup-uv@v2
65-
66- - name : Set up Python
67- run : uv python install 3.11
68-
69- - name : Set up Docker Buildx
70- uses : docker/setup-buildx-action@v3
71-
72- - name : Login to Container Registry
73- uses : docker/login-action@v3
74- with :
75- registry : ${{ env.REGISTRY }}
76- username : ${{ github.actor }}
77- password : ${{ secrets.GITHUB_TOKEN }}
78-
79- - name : Run GoReleaser
80- uses : goreleaser/goreleaser-action@v6
81- with :
82- distribution : goreleaser
83- args : release --clean
84- env :
85- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
86- GITHUB_REPOSITORY_OWNER : ${{ github.repository_owner }}
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ jobs :
9+ release :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : write
13+ packages : write
14+
15+ steps :
16+ - uses : actions/checkout@v4
17+ with :
18+ fetch-depth : 0
19+
20+ - name : Install uv
21+ uses : astral-sh/setup-uv@v2
22+
23+ - name : Set up Python
24+ run : uv python install 3.11
25+
26+ - name : Set up Docker Buildx
27+ uses : docker/setup-buildx-action@v3
28+
29+ - name : Login to GitHub Container Registry
30+ uses : docker/login-action@v3
31+ with :
32+ registry : ghcr.io
33+ username : ${{ github.actor }}
34+ password : ${{ secrets.GITHUB_TOKEN }}
35+
36+ - name : Run GoReleaser
37+ uses : goreleaser/goreleaser-action@v6
38+ with :
39+ distribution : goreleaser
40+ args : release --clean
41+ env :
42+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43+ GITHUB_REPOSITORY_OWNER : ${{ github.repository_owner }}
Original file line number Diff line number Diff line change 1+ name : Tag Release
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ tag-release :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : read
13+ id-token : write
14+ packages : write
15+
16+ steps :
17+ - name : Checkout code
18+ uses : actions/checkout@v4
19+ with :
20+ fetch-depth : 0
21+ token : ${{ secrets.GITHUB_TOKEN }}
22+
23+ - name : Get Octo STS Token
24+ uses : octo-sts/action@e480437973a6f6ac2e9caa40ecabedc870d76395
25+ id : octo-sts
26+ with :
27+ scope : ${{ github.repository }}
28+ identity : semantic-release
29+
30+ - name : Checkout code
31+ uses : actions/checkout@v4
32+ with :
33+ fetch-depth : 0
34+ token : ${{ steps.octo-sts.outputs.token }}
35+
36+ - uses : go-semantic-release/action@v1
37+ id : semantic-release
38+ with :
39+ github-token : ${{ steps.octo-sts.outputs.token }}
You can’t perform that action at this time.
0 commit comments