feat: Add Gitea workflow to build and release the Electron app with cross-compilation for Linux and Windows.
Some checks failed
Build and Release / build-and-release (push) Has been cancelled
Some checks failed
Build and Release / build-and-release (push) Has been cancelled
This commit is contained in:
@@ -16,12 +16,6 @@ jobs:
|
||||
with:
|
||||
node-version: 20
|
||||
|
||||
- name: Cache Wine apt packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: /var/cache/apt/archives
|
||||
key: wine-apt-${{ runner.os }}
|
||||
|
||||
- name: Install Wine (for Windows cross-compile)
|
||||
run: |
|
||||
sudo dpkg --add-architecture i386
|
||||
@@ -84,10 +78,11 @@ jobs:
|
||||
Frontend/Electron/dist/*.AppImage; do
|
||||
[ -f "$file" ] || continue
|
||||
FILENAME=$(basename "$file")
|
||||
ENCODED_NAME=$(echo -n "$FILENAME" | jq -sRr @uri)
|
||||
echo "Uploading: $FILENAME"
|
||||
curl -X POST -H "Authorization: token $TOKEN" \
|
||||
-F "attachment=@$file" \
|
||||
"$GITEA_URL/api/v1/repos/$REPO/releases/$RELEASE_ID/assets?name=$FILENAME"
|
||||
"$GITEA_URL/api/v1/repos/$REPO/releases/$RELEASE_ID/assets?name=$ENCODED_NAME"
|
||||
done
|
||||
env:
|
||||
GITEA_URL: ${{ secrets.CI_URL }}
|
||||
|
||||
Reference in New Issue
Block a user