-
Notifications
You must be signed in to change notification settings - Fork 116
/
release.yaml
51 lines (45 loc) · 1.31 KB
/
release.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: Publish
on:
push:
branches: [ ci ]
tags:
- '*'
env:
CARGO_TERM_COLOR: always
NODE_ENV: prod
jobs:
release:
name: Release for 0LNetworkCommunity
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1.0.7
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
components: rustfmt
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Build
run: RUSTC_WRAPPER=sccache make bins
- name: Upload binaries to github.com/release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/!(*.*)
file_glob: true
tag: ${{ github.ref }}
overwrite: true
- name: Build Web
run: cd ol/cli/web-monitor/public/ && npm i && npm run build
- name: Package Web
run: cd ol/cli/web-monitor/public/; tar -czvf web-monitor.tar.gz *
- name: Upload Web Files
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ol/cli/web-monitor/public/web-monitor.tar.gz
file_glob: true
tag: ${{ github.ref }}
overwrite: true