Skip to content

Commit 6e88e64

Browse files
committed
ci: deploy
1 parent 25ac668 commit 6e88e64

File tree

2 files changed

+50
-6
lines changed

2 files changed

+50
-6
lines changed

.github/workflows/ci.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: CI
22

33
on:
4-
push:
5-
branches:
6-
- main
74
pull_request:
85

96
permissions:
@@ -18,7 +15,8 @@ jobs:
1815
with:
1916
fetch-depth: 0
2017

21-
- uses: pnpm/action-setup@v4
18+
- name: Checkout repository
19+
uses: pnpm/action-setup@v4
2220
with:
2321
version: 9.12.1
2422

@@ -27,13 +25,15 @@ jobs:
2725
# Learn more at https://nx.dev/ci/reference/nx-cloud-cli#npx-nxcloud-startcirun
2826
- run: pnpm dlx nx-cloud start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="build"
2927

28+
- name: Install Node
3029
# Cache node_modules
31-
- uses: actions/setup-node@v4
30+
uses: actions/setup-node@v4
3231
with:
3332
node-version: 20
3433
cache: 'pnpm'
3534

36-
- run: pnpm install --frozen-lockfile
35+
- name: Install dependencies
36+
run: pnpm install --frozen-lockfile
3737
- uses: nrwl/nx-set-shas@v4
3838

3939
# Prepend any command with "nx-cloud record --" to record its logs to Nx Cloud

.github/workflows/deploy.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
main:
10+
name: Deploy
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
id-token: write # needed for provenance data generation
15+
timeout-minutes: 10
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Checkout repository
23+
uses: pnpm/action-setup@v4
24+
with:
25+
version: 9.12.1
26+
27+
- name: Install Node
28+
# Cache node_modules
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: 20
32+
cache: 'pnpm'
33+
34+
- name: Install dependencies
35+
run: pnpm install --frozen-lockfile
36+
37+
- uses: nrwl/nx-set-shas@v4
38+
- run: pnpm exec nx build devmx
39+
40+
- name: Deploy
41+
uses: peaceiris/actions-gh-pages@v3
42+
with:
43+
github_token: ${{ secrets.GITHUB_TOKEN }}
44+
publish_dir: ./dist/apps/devmx/browser

0 commit comments

Comments
 (0)