Skip to content

Commit a654eda

Browse files
author
Ayush Jha
committed
feat: CI to deploy docs.wasmer.io from main
1 parent ba79ccf commit a654eda

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["main", "publish-via-ci"]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v3
14+
15+
- uses: pnpm/action-setup@v4
16+
name: Install pnpm
17+
with:
18+
run_install: false
19+
20+
- name: Install Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
cache: 'pnpm'
25+
26+
- name: Install dependencies
27+
run: pnpm install
28+
29+
- name: Build
30+
run: pnpm run build
31+
32+
- name: Setup Wasmer
33+
uses: wasmerio/setup-wasmer@v2
34+
35+
- name: Deploy app
36+
run: wasmer deploy --registry wasmer.io
37+
env:
38+
WASMER_TOKEN: ${{ secrets.WASMER_CIUSER_PROD_TOKEN }}
39+

0 commit comments

Comments
 (0)