update release step
Build KX3DEX.radio / Build and Deploy (push) Failing after 2m21s Details

master kx3dex_radio_v1.3.0
Dex 2024-05-06 13:03:39 -04:00
parent 21ae7fa91c
commit 6b0be661bd
2 changed files with 6 additions and 7 deletions

View File

@ -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}