.gitea/workflows/release.yml aktualisiert
Some checks failed
Release Plugin / release (push) Failing after 5s
Some checks failed
Release Plugin / release (push) Failing after 5s
This commit is contained in:
@@ -166,20 +166,20 @@ jobs:
|
||||
- name: Upload ZIP asset
|
||||
id: upload_asset
|
||||
run: |
|
||||
echo "Lade release_${{ github.ref_name }}.zip (${{ env.ZIP_NAME }})hoch..."
|
||||
RESPONSE=$(curl -s -k -X POST "https://${{ vars.RELEASE_URL }}/api/v1/repos/${{ github.repository }}/releases/${{ env.RELEASE_ID }}/assets?name=${{ env.ZIP_NAME }}" \
|
||||
echo "Lade release_${{ github.ref_name }}.zip (${{ env.ZIP_NAME }}) hoch..."
|
||||
|
||||
RESPONSE=$(curl -s -k -X POST \
|
||||
"https://${{ vars.RELEASE_URL }}/api/v1/repos/${{ github.repository }}/releases/${{ env.RELEASE_ID }}/assets?name=${{ env.ZIP_NAME }}" \
|
||||
-H "accept: application/json" \
|
||||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||
-H "Content-Type: multipart/form-data" \
|
||||
-F "attachment=${{ env.ZIP_NAME }}")
|
||||
-F "attachment=@dist/${{ env.ZIP_NAME }}")
|
||||
|
||||
echo "Upload response: $RESPONSE"
|
||||
|
||||
DOWNLOAD_URL=$(echo "$RESPONSE" | grep -o '"browser_download_url":"[^"]*' | cut -d'"' -f4)
|
||||
echo "download_url=${DOWNLOAD_URL}" >> $GITHUB_OUTPUT
|
||||
|
||||
|
||||
|
||||
- name: Build XML block
|
||||
id: xmlblock
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user