update release step
Build KX3DEX.radio / Build and Deploy (push) Failing after 2m21s
Details
Build KX3DEX.radio / Build and Deploy (push) Failing after 2m21s
Details
parent
21ae7fa91c
commit
6b0be661bd
|
@ -34,8 +34,7 @@ jobs:
|
|||
|
||||
echo "Checking https://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases for name ${CURR_NAME}"
|
||||
|
||||
if curl -s -X GET -H "Authorization: token ${{ secrets.action_token }}" https://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases | grep -o "\"name\"\:\"${CURR_NAME}\"" > /dev/null; then
|
||||
|
||||
if curl -s -X GET -H "Authorization: token ${{ secrets.ACTION_TOKEN }}" https://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases | grep -o "\"name\"\:\"${CURR_NAME}\"" > /dev/null; then
|
||||
echo "Skipping ${{ gitea.job }} since $CURR_NAME already exists";
|
||||
exit 0
|
||||
fi
|
||||
|
@ -47,8 +46,8 @@ jobs:
|
|||
echo "Creating ${CURR_VER} release on gitea"
|
||||
RELEASE_RESULT=$(curl \
|
||||
-X POST \
|
||||
-H "Authorization: token ${{ secrets.action_token }}" \
|
||||
-H "Content-Type: multipart/form-data" \
|
||||
-H "Authorization: token ${{ secrets.ACTION_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
https://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases \
|
||||
-d "{\"tag_name\":\"${CURR_VER}\",\"name\":\"${CURR_NAME}\",\"body\":\"Automatic release from gitea :\n\n${{ gitea.event.head_commit.message }}\"}")
|
||||
|
||||
|
@ -58,7 +57,7 @@ jobs:
|
|||
|
||||
curl \
|
||||
-X POST \
|
||||
-H "Authorization: token ${{ secrets.action_token }}" \
|
||||
-H "Authorization: token ${{ secrets.ACTION_TOKEN }}" \
|
||||
https://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases/$RELEASE_ID/assets
|
||||
|
||||
- name: Build and push
|
||||
|
@ -70,4 +69,4 @@ jobs:
|
|||
linux/arm64
|
||||
push: true
|
||||
tags: |
|
||||
gitea.simplysyncedllc.com/dex/kx3dex_radio:latest
|
||||
gitea.simplysyncedllc.com/dex/kx3dex_radio:${RELEASE_ID}
|
||||
|
|
Loading…
Reference in New Issue