-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (41 loc) · 1.21 KB
/
cd.yml
File metadata and controls
53 lines (41 loc) · 1.21 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
45
46
47
48
49
50
51
52
53
name: CD
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- uses: nrwl/nx-set-shas@v2
with:
main-branch-name: master
- run: npm install --legacy-peer-deps
- run: npx nx workspace-lint
- run: npx nx run-many --target=lint --all
- run: npm run build:all
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.DEPLOY_KEY }}
repository-name: feakin/online
folder: packages/render/dist
- name: Build
run: cargo build --release --manifest-path=crates/server/Cargo.toml
- uses: akhileshns/heroku-deploy@v3.12.12 # This is the action
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "feakin"
heroku_email: "gmszone@qq.com"
buildpack: "https://github.com/emk/heroku-buildpack-rust.git"