Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
f642eb5b06 | |||
75f0bc3fef | |||
2cbfeaf6c1 | |||
22a2476194 | |||
342bb23a8a |
@ -22,7 +22,7 @@ jobs:
|
||||
echo "REPO=${GITEA_REPOSITORY#*/}" >> $GITEA_ENV
|
||||
echo "OWNER=${GITEA_REPOSITORY%/*}" >> $GITEA_ENV
|
||||
|
||||
- name: Install git-chglog
|
||||
- name: Install git-chglog (no Go needed)
|
||||
run: |
|
||||
GIT_CHGLOG_VERSION="0.15.1"
|
||||
curl -sSL "https://github.com/git-chglog/git-chglog/releases/download/v${GIT_CHGLOG_VERSION}/git-chglog_${GIT_CHGLOG_VERSION}_linux_amd64.tar.gz" -o git-chglog.tar.gz
|
||||
@ -41,11 +41,22 @@ jobs:
|
||||
echo "Changelog generated:"
|
||||
cat CHANGELOG.md
|
||||
|
||||
- name: Create Gitea Release
|
||||
uses: https://gitea.com/actions/release-action@main
|
||||
with:
|
||||
api_key: ${{ secrets.TOKEN }}
|
||||
owner: ${{ env.OWNER }}
|
||||
repo: ${{ env.REPO }}
|
||||
tag: ${{ github.ref_name }}
|
||||
body_file: CHANGELOG.md
|
||||
- name: Create Gitea Release via API (no Go required)
|
||||
env:
|
||||
TOKEN: ${{ secrets.TOKEN }}
|
||||
GITEA_REPOSITORY: ${{ env.GITEA_REPOSITORY }}
|
||||
run: |
|
||||
OWNER="${GITEA_REPOSITORY%%/*}"
|
||||
REPO="${GITEA_REPOSITORY##*/}"
|
||||
TAG=${GITHUB_REF##*/} # aktueller Tagname
|
||||
echo "Owner: $OWNER, Repo: $REPO, Tag: $TAG"
|
||||
curl -X POST "https://dev.ksite.de/api/v1/repos/${OWNER}/${REPO}/releases" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: token $TOKEN" \
|
||||
-d @- <<EOF
|
||||
{
|
||||
"tag_name": "${TAG}",
|
||||
"name": "${TAG}",
|
||||
"body": "$(sed 's/"/\\"/g' CHANGELOG.md)"
|
||||
}
|
||||
EOF
|
||||
|
Reference in New Issue
Block a user