refactor: reorganize project in order to include automation #1
1 changed files with 11 additions and 0 deletions
|
@ -18,6 +18,16 @@ jobs:
|
|||
id: go-version
|
||||
run: |
|
||||
sed '/^go /!d; s/go /version=/' go.mod >>"$GITHUB_OUTPUT"
|
||||
-
|
||||
name: Extract release notes
|
||||
id: release-notes
|
||||
run: |
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
TAG_DATA="$(git tag -l --format '%(contents:body)' "${GITHUB_REF#refs/tags/}")"
|
||||
TAG_DATA="${TAG_DATA//'%'/'%25'}"
|
||||
TAG_DATA="${TAG_DATA//$'\n'/'%0A'}"
|
||||
TAG_DATA="${TAG_DATA//$'\r'/'%0D'}"
|
||||
echo "::set-output name=content::${TAG_DATA}"
|
||||
-
|
||||
name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
|
@ -38,4 +48,5 @@ jobs:
|
|||
direction: upload
|
||||
name: binaries
|
||||
release-dir: dist/release
|
||||
release-notes: ${{ steps.release-notes.outputs.content }}
|
||||
token: ${{ secrets.FORGEJO_TOKEN }}
|
||||
|
|
Loading…
Reference in a new issue