Skip to content

Commit 7d441e0

Browse files
committed
Add jobs to build and deploy to GitHub Pages
1 parent 16fb009 commit 7d441e0

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,47 @@ jobs:
2929

3030
- name: Run tests
3131
run: cargo test --no-default-features --features ${{ matrix.features }}
32+
33+
build-pages:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
with:
38+
submodules: true
39+
40+
- uses: Swatinem/rust-cache@v2
41+
42+
- uses: actions/setup-node@v4
43+
with:
44+
node-version: lts/*
45+
cache: yarn
46+
47+
- name: Install dependencies
48+
working-directory: mindy-website/www
49+
run: yarn install --frozen-lockfile
50+
51+
- name: Build
52+
working-directory: mindy-website/www
53+
run: yarn build
54+
55+
- name: Upload site artifact
56+
uses: actions/upload-pages-artifact@v3
57+
with:
58+
path: mindy-website/www/dist/
59+
60+
deploy-pages:
61+
needs: build-pages
62+
runs-on: ubuntu-latest
63+
concurrency:
64+
group: pages
65+
cancel-in-progress: false
66+
permissions:
67+
pages: write
68+
id-token: write
69+
environment:
70+
name: github-pages
71+
url: ${{ steps.deploy.outputs.page_url }}
72+
steps:
73+
- name: Deploy to GitHub Pages
74+
id: deploy
75+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)