-
Notifications
You must be signed in to change notification settings - Fork 25
59 lines (47 loc) · 1.57 KB
/
build-release-files.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
name: Build files and add to release
on:
# release:
# types:
# - created
# - published
push:
jobs:
run-linter:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
- uses: actions/setup-node@v3
with:
node-version: "latest"
- name: Create directories
run: mkdir -p ~/out/notify
- name: Compile Deno and copy to output
run: deno compile --allow-net --allow-read --allow-write --allow-env --unstable --output ~/out/notify/notify ./main.ts
working-directory: ./app/backend
- name: Install frontend dependencies
run: npm install
working-directory: ./app/frontend
- name: Build frontend
run: npm run build
working-directory: ./app/frontend
- name: Copy frontend files
run: cp -r ./app/frontend/build/* ~/out/notify/static-files
- name: Archive files
run: tar -czf ~/out/notify/notify.tar.gz -C /out/notify .
- name: Add artifact
uses: actions/upload-artifact@v2
with:
name: notify
path: /out/notify/notify.tar.gz
# - name: Upload release files
# uses: actions/upload-release-asset@v1
# with:
# upload_url: ${{ github.event.release.upload_url }}
# asset_path: /out/notify/notify.tar.gz
# asset_name: notify.tar.gz
# asset_content_type: application/gzip
# token: ${{ secrets.GITHUB_TOKEN }}