Skip to content

Commit 3c6140f

Browse files
committed
Configure gh pages
1 parent c9167cd commit 3c6140f

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

.github/workflows/pages.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Deploy static content to Pages
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
deploy:
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
22+
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: 22
30+
cache: 'npm'
31+
32+
- name: Cache PureScript dependencies
33+
uses: actions/cache@v4
34+
with:
35+
key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.lock') }}
36+
path: |
37+
.spago
38+
output
39+
40+
- name: Install npm dependencies
41+
run: npm install
42+
43+
- name: Build source
44+
run: npm run build
45+
46+
- name: Setup Pages
47+
uses: actions/configure-pages@v4
48+
49+
- name: Upload artifact
50+
uses: actions/upload-pages-artifact@v3
51+
with:
52+
path: './dist'
53+
54+
- name: Deploy to GitHub Pages
55+
id: deployment
56+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)