-
-
Notifications
You must be signed in to change notification settings - Fork 109
74 lines (61 loc) · 2.1 KB
/
build-linux.yml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Build and release TabFS for Linux
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [15.x]
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- name: Install libfuse-dev
run: sudo apt-get install libfuse-dev
- name: Compile the FUSE filesystem
run: cd fs && make
- name: Load Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Web-ext
run: npm install --global web-ext
- name: Build browser extension
run: web-ext build -s extension -n tabfs.zip
- name: Create tarball
run: tar -cvf tabfs-filesystem.tar fs/tabfs install.sh
- name: Set git commit hash
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: dev/${{ steps.vars.outputs.sha_short }}
release_name: 'Development Release #${{ steps.vars.outputs.sha_short }}'
draft: false
prerelease: true
- name: Upload filesystem asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./tabfs-filesystem.tar
asset_name: tabfs-filesystem.tar
asset_content_type: application/x-tar
- name: Upload browser extension
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./web-ext-artifacts/tabfs.zip
asset_name: tabfs-web-extension.zip
asset_content_type: application/zip