This repository was archived by the owner on Jun 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
44 lines (44 loc) · 1.47 KB
/
release-linux.yaml
File metadata and controls
44 lines (44 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Release Linux
on:
workflow_dispatch:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
# - name: Install flatpak deps
# run: |
# sudo apt-get install flatpak -y
# sudo apt-get install flatpak-builder -y
# sudo apt-get install elfutils -y
# sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# sudo flatpak install flathub org.freedesktop.Platform/x86_64/21.08 org.freedesktop.Sdk/x86_64/21.08 org.electronjs.Electron2.BaseApp/x86_64/21.08 -y
- name: Setup Snapcraft
run: |
sudo chown -R $USER:$USER /home/runner
sudo snap install snapcraft --classic
echo "$SNAP_TOKEN" | snapcraft login --with -
env:
SNAP_TOKEN: ${{secrets.SNAP_TOKEN}}
- name: Install Packages
run: yarn install
- name: Rebuild Native Modules
run: npx electron-rebuild
- name: Get Urbit Binaries
run: ./get-urbit.sh
- name: Build & Publish
run: |
yarn run publish
snapcraft upload --release=stable out/make/*.snap
env:
SNAPCRAFT_BUILD_ENVIRONMENT: host
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}