ci: add Gitea Actions workflow to automate building and releasing the Electron application.
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:
@@ -7,19 +7,21 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-and-release:
|
build-and-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: electronuserland/builder:wine
|
container:
|
||||||
|
image: electronuserland/builder:wine
|
||||||
|
options: --privileged
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install required tools
|
- name: Install required tools
|
||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install -y jq xvfb flatpak flatpak-builder
|
apt-get update && apt-get install -y jq xvfb flatpak flatpak-builder elfutils xdg-dbus-proxy
|
||||||
|
|
||||||
- name: Setup Flatpak runtimes
|
- name: Setup Flatpak runtimes
|
||||||
run: |
|
run: |
|
||||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
flatpak install -y flathub org.freedesktop.Platform//23.08 org.freedesktop.Sdk//23.08 org.electronjs.Electron2.BaseApp//23.08
|
flatpak --user install -y flathub org.freedesktop.Platform//23.08 org.freedesktop.Sdk//23.08 org.electronjs.Electron2.BaseApp//23.08
|
||||||
|
|
||||||
- name: Cache npm and Electron
|
- name: Cache npm and Electron
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user