Skip to content

Commit 6c5862d

Browse files
committed
build: update cd workflows
1 parent 4d8e60b commit 6c5862d

File tree

2 files changed

+37
-10
lines changed

2 files changed

+37
-10
lines changed

.github/workflows/cd.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CD
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
main:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
- uses: nrwl/nx-set-shas@v2
19+
- run: npm install --legacy-peer-deps
20+
21+
- run: npx nx workspace-lint
22+
23+
- run: npx nx run-many --target=lint --all
24+
25+
- run: npm run build:all
26+
27+
- run: npm run test:all
28+
29+
- name: Upload coverage to Codecov
30+
uses: codecov/codecov-action@v3
31+
32+
- name: Deploy 🚀
33+
uses: JamesIves/github-pages-deploy-action@v4
34+
with:
35+
token: ${{ secrets.DEPLOY_KEY }}
36+
repository-name: feakin/online
37+
folder: packages/render/dist

.github/workflows/ci.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
- master
66
pull_request:
77

8-
permissions:
9-
contents: write
10-
118
jobs:
129
main:
1310
runs-on: ubuntu-latest
@@ -28,10 +25,3 @@ jobs:
2825

2926
- name: Upload coverage to Codecov
3027
uses: codecov/codecov-action@v3
31-
32-
- name: Deploy 🚀
33-
uses: JamesIves/github-pages-deploy-action@v4
34-
with:
35-
token: ${{ secrets.DEPLOY_KEY }}
36-
repository-name: feakin/online
37-
folder: packages/render/dist

0 commit comments

Comments
 (0)