This commit is contained in:
parent
9f5f7a2a21
commit
ad728d4169
1 changed files with 4 additions and 2 deletions
|
@ -46,12 +46,14 @@ jobs:
|
|||
echo
|
||||
- name: create release
|
||||
run: |
|
||||
echo "Getting last Release Tag"
|
||||
VERSION=$(curl -X 'GET' 'https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases?page=1&limit=1' -H 'accept: application/json')
|
||||
VERSION=$(echo $VERSION | jq -r '.[0].tag_name' | awk -F. -v OFS=. '{$NF += 1 ; print}')
|
||||
echo "Generate new Release"
|
||||
curl -X 'POST' \
|
||||
'https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases' \
|
||||
-H 'accept: application/json' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-H 'Authorization: token ${{ secrets.RELEASE_TOKEN }}' \
|
||||
-d '{"body": "Automated Build","draft": true,"name": "Automated Release $VERSION","prerelease": true,"tag_name": "$VERSION",}'
|
||||
|
||||
-d '{"body": "Automated Build","draft": true,"name": "Automated Release ABC","prerelease": true,"tag_name": "CBA",}'
|
||||
echo "Uploading Build to new Release"
|
||||
|
|
Loading…
Reference in a new issue