File tree Expand file tree Collapse file tree 2 files changed +61
-1
lines changed
Expand file tree Collapse file tree 2 files changed +61
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Build/release-flatpak
2+
3+ on : push
4+
5+ jobs :
6+ release-flatpak :
7+ permissions :
8+ contents : write
9+
10+ runs-on : ${{ matrix.os }}
11+ container :
12+ image : ghcr.io/flathub-infra/flatpak-github-actions:gnome-48
13+ options : --privileged
14+
15+ strategy :
16+ matrix :
17+ os : [ubuntu-latest]
18+
19+ steps :
20+ - name : Check out Git repository
21+ uses : actions/checkout@v4
22+ with :
23+ lfs : true
24+
25+ - name : Install Node.js, NPM and Yarn
26+ uses : actions/setup-node@v4
27+ with :
28+ node-version : " 22.x"
29+
30+ - run : id
31+ # - run: flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
32+ - run : flatpak install flathub org.freedesktop.Sdk/x86_64/20.08 -y
33+ - run : flatpak install flathub org.freedesktop.Platform/x86_64/20.08 -y
34+ - run : flatpak install flathub app/org.electronjs.Electron2.BaseApp/x86_64/20.08 -y
35+
36+ - run : npm ci
37+ # - run: npm run build
38+
39+ # - name: Build Flatpak
40+ # uses: flatpak/flatpak-github-actions/flatpak-builder@v6
41+ # with:
42+ # manifest-path: flatpak/manifest.yml
43+ # bundle: app.flatpak
44+ # cache-key: flatpak-builder-${{ github.sha }}
45+
46+ - run : echo 60b725f10c9c85c70d97880dfe8191b3 > /etc/machine-id
47+ - run : export DBUS_SESSION_BUS_ADDRESS="$(dbus-daemon --session --print-address --fork)" && echo $DBUS_SESSION_BUS_ADDRESS
48+
49+ - name : Package with electron-builder
50+ run : env DEBUG="@malept/flatpak-bundler" npx electron-builder --linux flatpak
51+
52+ # - name: Upload Flatpak to release
53+ # uses: softprops/action-gh-release@v2
54+ # with:
55+ # tag_name: ${{ github.ref_name }}
56+ # draft: true
57+ # files: |
58+ # dist/*.flatpak
59+ # app.flatpak
60+ # env:
61+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1414
1515 strategy :
1616 matrix :
17- # os: [macos-latest, ubuntu-latest, windows-latest]
1817 os : [ubuntu-latest]
1918
2019 steps :
You can’t perform that action at this time.
0 commit comments