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}" 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"; echo "Skipping ${{ gitea.job }} since $CURR_NAME already exists";
exit 0 exit 0
fi fi
@ -47,8 +46,8 @@ jobs:
echo "Creating ${CURR_VER} release on gitea" echo "Creating ${CURR_VER} release on gitea"
RELEASE_RESULT=$(curl \ RELEASE_RESULT=$(curl \
-X POST \ -X POST \
-H "Authorization: token ${{ secrets.action_token }}" \ -H "Authorization: token ${{ secrets.ACTION_TOKEN }}" \
-H "Content-Type: multipart/form-data" \ -H "Content-Type: application/json" \
https://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases \ 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 }}\"}") -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 \ curl \
-X POST \ -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 https://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases/$RELEASE_ID/assets
- name: Build and push - name: Build and push
@ -70,4 +69,4 @@ jobs:
linux/arm64 linux/arm64
push: true push: true
tags: | tags: |
gitea.simplysyncedllc.com/dex/kx3dex_radio:latest gitea.simplysyncedllc.com/dex/kx3dex_radio:${RELEASE_ID}