-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (47 loc) · 1.24 KB
/
ci.yaml
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
45
46
47
48
49
50
51
name: "CI"
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: latest
- run: npm ci
- run: make check
- run: make compile
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: latest
- name: Install gnome-shell and strip-nondeterminism
run: |
sudo apt-get update -qq
sudo apt-get install --no-install-recommends -qq -y gnome-shell strip-nondeterminism
- run: npm ci
- run: make dist-repro
- run: b2sum *.zip > B2SUMS.txt
working-directory: dist
- uses: actions/upload-artifact@v3
with:
name: dist
path: "dist/*"
create-release:
runs-on: ubuntu-latest
needs: build
# Only create a release on a tag
if: ${{ startsWith(github.ref, 'refs/tags/') }}
steps:
- uses: actions/download-artifact@v3
with:
path: dist
name: dist
- uses: softprops/action-gh-release@v1
with:
files: "dist/*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}