fix(cli): Release pipeline using Goreleaser should work now
This commit is contained in:
parent
2f52257f1a
commit
a56360eacc
2 changed files with 18 additions and 27 deletions
34
.github/workflows/release.yaml
vendored
34
.github/workflows/release.yaml
vendored
|
|
@ -9,37 +9,17 @@ jobs:
|
|||
goreleaser:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
-
|
||||
name: Set up Go
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: '>=1.25.1'
|
||||
-
|
||||
name: Run GoReleaser
|
||||
go-version: ">=1.25.1"
|
||||
- name: Run GoReleaser
|
||||
uses: https://github.com/goreleaser/goreleaser-action@v6
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
|
||||
with:
|
||||
args: release --clean --skip=publish
|
||||
-
|
||||
name: Grab Changelog
|
||||
id: changelog
|
||||
run: |
|
||||
echo "text=$(cat dist/CHANGELOG.md)" >> "$GITHUB_OUTPUT"
|
||||
echo "text=$(cat dist/CHANGELOG.md)"
|
||||
-
|
||||
name: Release app
|
||||
uses: actions/forgejo-release@v2.6.0
|
||||
with:
|
||||
direction: upload
|
||||
#token: ${{ secrets.WRITE_TOKEN_TO_MYREPO }}
|
||||
release-dir: dist
|
||||
release-notes: ${{ steps.changelog.output.text }}
|
||||
url: "https://edp.buildth.ing"
|
||||
repo: "DevFW-CICD/edge-connect-client"
|
||||
tag: "${{ github.ref_name }}"
|
||||
sha: "${{ github.sha }}"
|
||||
token: ${{ secrets.PACKAGES_TOKEN }}
|
||||
args: release --clean
|
||||
|
|
|
|||
|
|
@ -51,3 +51,14 @@ changelog:
|
|||
- title: Others
|
||||
order: 999
|
||||
sort: asc
|
||||
|
||||
release:
|
||||
gitea:
|
||||
owner: DevFW-CICD
|
||||
name: edge-connect-client
|
||||
|
||||
gitea_urls:
|
||||
api: https://edp.buildth.ing/api/v1
|
||||
download: https://edp.buildth.ing
|
||||
# set to true if you use a self-signed certificate
|
||||
skip_tls_verify: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue