Test
Some checks failed
Build Dusk / build-linux (push) Successful in 48s
Build Dusk / build-psp (push) Successful in 53s
Build Dusk / release (push) Failing after 7s

This commit is contained in:
2025-11-12 15:31:18 -06:00
parent 768323b5b6
commit 5c2788efe4

View File

@@ -66,34 +66,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v5
- name: Download Linux binary
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: dusk-linux
path: ./release-assets
- name: Download PSP binary
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: dusk-psp
path: ./release-assets
- name: Create Gitea Release
uses: akkuman/gitea-release-action@v1
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_URL: ${{ secrets.GITEA_URL }}
run: |
TAG_NAME="v${{ github.run_number }}"
RELEASE_NAME="Release $TAG_NAME"
RELEASE_BODY="Automated release from CI."
# Create release
RELEASE_RESPONSE=$(curl -s -X POST "$GITEA_URL/api/v1/repos/${{ github.repository }}/releases" \
-H "Content-Type: application/json" \
-H "Authorization: token $GITEA_TOKEN" \
-d "{\"tag_name\": \"$TAG_NAME\", \"name\": \"$RELEASE_NAME\", \"body\": \"$RELEASE_BODY\"}")
echo "Release response: $RELEASE_RESPONSE"
# Upload assets
for asset in ./release-assets/*; do
echo "Uploading asset: $asset"
curl -s -X POST "$GITEA_URL/api/v1/repos/${{ github.repository }}/releases/tags/$TAG_NAME/assets?name=$(basename $asset)" \
-H "Authorization: token $GITEA_TOKEN" \
-F "file=@$asset"
done
echo "Release $TAG_NAME created and assets uploaded."
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
files: ./release-assets/*