Skip to content

Commit 596e7f3

Browse files
committed
Add website CI
1 parent 512ded8 commit 596e7f3

File tree

2 files changed

+50
-3
lines changed

2 files changed

+50
-3
lines changed

.github/workflows/website.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Website
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
# Build & upload the static files as an artifact
9+
build:
10+
defaults:
11+
run:
12+
working-directory: website
13+
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Install Zola
18+
run: sudo snap install zola
19+
- name: Install TailwindCSS
20+
run: npm install @tailwindcss/cli
21+
- name: Build CSS
22+
- run: npx @tailwindcss/cli -m -i input.css -o static/main.css
23+
- name: Build site
24+
run: zola build
25+
- name: Upload static files as artifact
26+
uses: actions/upload-pages-artifact@v3
27+
with:
28+
path: public/
29+
30+
deploy:
31+
needs: build
32+
33+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
34+
permissions:
35+
pages: write # to deploy to Pages
36+
id-token: write # to verify the deployment originates from an appropriate source
37+
38+
# Deploy to the github-pages environment
39+
environment:
40+
name: github-pages
41+
url: ${{ steps.deployment.outputs.page_url }}
42+
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Deploy to GitHub Pages
46+
uses: actions/deploy-pages@v4

website/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
"devDependencies": {
3-
"rustywind": "^0.24",
4-
"tailwindcss": "^4.1",
2+
"dependencies": {
53
"@tailwindcss/cli": "^4.1"
4+
},
5+
"devDependencies": {
6+
"rustywind": "^0.24"
67
}
78
}

0 commit comments

Comments
 (0)