2 Commits

Author SHA1 Message Date
a0f67464b5 Simplify build-and-release workflow by switching to akkuman/gitea-release-action and enabling checksum generation.
Some checks failed
Release binary for cl-cli / build-and-release (push) Failing after 7s
2025-10-24 23:41:29 +02:00
ff5699e627 Update workflow to specify branches for push and pull_request events 2025-10-24 23:35:28 +02:00
2 changed files with 11 additions and 12 deletions

View File

@@ -20,17 +20,14 @@ jobs:
id: read_release id: read_release
with: with:
path: .changes/${{ github.ref_name }}.md path: .changes/${{ github.ref_name }}.md
- name: Setup go for using go gitea actions - name: Release
uses: https://gitea.com/actions/setup-go@v4 uses: akkuman/gitea-release-action@v1
with: #env:
go-version: '>=1.20.1' # NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
- name: Use Go Action to release
id: use-go-action
uses: https://gitea.com/actions/release-action@main
with: with:
files: |- files: |-
target/release/cl-cli target/release/cl-cli
config.toml.dist config.toml.dist
api_key: '${{secrets.RELEASE_TOKEN}}' md5sum: true
body: | sha256sum: true
${{ steps.read_release.outputs.content }} body_path: .changes/${{ github.ref_name }}.md

View File

@@ -1,8 +1,10 @@
name: Check go code name: Check go code
on: on:
push: * push:
pull_request: * branches: *
pull_request:
branches: *
jobs: jobs:
build-and-release: build-and-release: