Update .gitea/workflows/build-android.yaml
Build Custom Bluesky APK / build-android (push) Failing after 35m27s
Build Custom Bluesky APK / build-android (push) Failing after 35m27s
This commit is contained in:
@@ -108,7 +108,32 @@ jobs:
|
||||
eas build --platform android --profile selfhosted-android --local --non-interactive --output ./bluesky-custom.apk
|
||||
|
||||
- name: Upload Signed Application Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Bluesky-Custom-Release
|
||||
path: bluesky-custom.apk
|
||||
path: bluesky-custom.apk
|
||||
|
||||
- name: Create Gitea Release with APK
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITEA_API: ${{ github.server_url }}/api/v1
|
||||
REPO: ${{ github.repository }}
|
||||
run: |
|
||||
TAG="build-${{ github.run_number }}"
|
||||
|
||||
# Create the release
|
||||
RELEASE_RESPONSE=$(curl -s -X POST \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{\"tag_name\": \"$TAG\", \"name\": \"Build $TAG\", \"body\": \"Automated build from commit ${{ github.sha }}\", \"draft\": false, \"prerelease\": false}" \
|
||||
"$GITEA_API/repos/$REPO/releases")
|
||||
|
||||
RELEASE_ID=$(echo "$RELEASE_RESPONSE" | grep -o '"id":[0-9]*' | head -1 | grep -o '[0-9]*')
|
||||
|
||||
echo "Created release ID: $RELEASE_ID"
|
||||
|
||||
# Upload the APK as a release asset
|
||||
curl -s -X POST \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
-F "attachment=@bluesky-custom.apk" \
|
||||
"$GITEA_API/repos/$REPO/releases/$RELEASE_ID/assets?name=bluesky-custom.apk"
|
||||
Reference in New Issue
Block a user