Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
5b8771a87d
|
|||
87f6046cfd
|
@ -24,15 +24,15 @@ jobs:
|
||||
|
||||
- name: Create Release on Gitea
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
GITEA_TOKEN: ${{ secrets.GIT_TOKEN }}
|
||||
run: |
|
||||
TAG=$(git describe --tags)
|
||||
REPO=${GITEA_REPOSITORY#*/}
|
||||
OWNER=${GITEA_REPOSITORY%/*}
|
||||
BODY=$(cat RELEASE_NOTES.md | jq -Rs .)
|
||||
|
||||
curl -X POST "https://gitea.example.com/api/v1/repos/$OWNER/$REPO/releases" \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
curl -X POST "https://dev.ksite.de/api/v1/repos/ralf.kirchner/demo/releases" \
|
||||
-H "Authorization: token $GIT_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{
|
||||
\"tag_name\": \"$TAG\",
|
||||
|
Reference in New Issue
Block a user