fix: resolve CI failures in release workflows
- Downgrade setup-go@v6 to v5 (v6 breaks with "version: not found" on Gitea runner) - Use go-version-file instead of go-version: stable for consistency - Add skip_tls_verify to goreleaser gitea_urls for Cloudflare origin cert - Add curl -k flag for package registry uploads
This commit is contained in:
@@ -17,9 +17,9 @@ jobs:
|
|||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-go@v6
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: stable
|
go-version-file: 'go.mod'
|
||||||
- name: Build all platforms
|
- name: Build all platforms
|
||||||
run: |
|
run: |
|
||||||
VERSION=$(git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
|
VERSION=$(git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
|
||||||
@@ -46,9 +46,9 @@ jobs:
|
|||||||
for f in gitea-mcp-extended_*.{tar.gz,zip}; do
|
for f in gitea-mcp-extended_*.{tar.gz,zip}; do
|
||||||
[ -f "$f" ] || continue
|
[ -f "$f" ] || continue
|
||||||
# Delete old nightly file first (can't overwrite)
|
# Delete old nightly file first (can't overwrite)
|
||||||
curl -sf -X DELETE --user "${{ gitea.actor }}:${{ secrets.GITHUB_TOKEN }}" \
|
curl -skf -X DELETE --user "${{ gitea.actor }}:${{ secrets.GITHUB_TOKEN }}" \
|
||||||
"${{ gitea.server_url }}/api/packages/lethalbits/generic/gitea-mcp-extended/nightly/${f}" || true
|
"${{ gitea.server_url }}/api/packages/lethalbits/generic/gitea-mcp-extended/nightly/${f}" || true
|
||||||
curl -sf --user "${{ gitea.actor }}:${{ secrets.GITHUB_TOKEN }}" \
|
curl -skf --user "${{ gitea.actor }}:${{ secrets.GITHUB_TOKEN }}" \
|
||||||
--upload-file "$f" \
|
--upload-file "$f" \
|
||||||
"${{ gitea.server_url }}/api/packages/lethalbits/generic/gitea-mcp-extended/nightly/${f}"
|
"${{ gitea.server_url }}/api/packages/lethalbits/generic/gitea-mcp-extended/nightly/${f}"
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -17,9 +17,9 @@ jobs:
|
|||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-go@v6
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: stable
|
go-version-file: 'go.mod'
|
||||||
- run: go install github.com/goreleaser/goreleaser/v2@latest
|
- run: go install github.com/goreleaser/goreleaser/v2@latest
|
||||||
- run: goreleaser release --clean
|
- run: goreleaser release --clean
|
||||||
env:
|
env:
|
||||||
@@ -31,9 +31,9 @@ jobs:
|
|||||||
needs: goreleaser
|
needs: goreleaser
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: actions/setup-go@v6
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: stable
|
go-version-file: 'go.mod'
|
||||||
- name: Build all platforms
|
- name: Build all platforms
|
||||||
run: |
|
run: |
|
||||||
VERSION=${GITHUB_REF_NAME#v}
|
VERSION=${GITHUB_REF_NAME#v}
|
||||||
@@ -62,7 +62,7 @@ jobs:
|
|||||||
VERSION=${GITHUB_REF_NAME#v}
|
VERSION=${GITHUB_REF_NAME#v}
|
||||||
for f in gitea-mcp-extended_*.{tar.gz,zip}; do
|
for f in gitea-mcp-extended_*.{tar.gz,zip}; do
|
||||||
[ -f "$f" ] || continue
|
[ -f "$f" ] || continue
|
||||||
curl -sf --user "${{ gitea.actor }}:${{ secrets.GITHUB_TOKEN }}" \
|
curl -skf --user "${{ gitea.actor }}:${{ secrets.GITHUB_TOKEN }}" \
|
||||||
--upload-file "$f" \
|
--upload-file "$f" \
|
||||||
"${{ gitea.server_url }}/api/packages/lethalbits/generic/gitea-mcp-extended/${VERSION}/${f}"
|
"${{ gitea.server_url }}/api/packages/lethalbits/generic/gitea-mcp-extended/${VERSION}/${f}"
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -73,4 +73,5 @@ release:
|
|||||||
gitea_urls:
|
gitea_urls:
|
||||||
api: https://git.lethalbits.com/api/v1
|
api: https://git.lethalbits.com/api/v1
|
||||||
download: https://git.lethalbits.com
|
download: https://git.lethalbits.com
|
||||||
|
skip_tls_verify: true
|
||||||
force_token: gitea
|
force_token: gitea
|
||||||
|
|||||||
Reference in New Issue
Block a user