Skip to content

Commit 00f58aa

Browse files
authored
Merge pull request #1 from philpax/main
Wiki SSG
2 parents abda517 + 1018604 commit 00f58aa

File tree

1,288 files changed

+26982
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,288 files changed

+26982
-2
lines changed

.github/workflows/ci.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: Build (and eventually deploy)
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
concurrency:
16+
group: "pages"
17+
cancel-in-progress: false
18+
19+
env:
20+
CARGO_TERM_COLOR: always
21+
22+
jobs:
23+
test:
24+
name: Test
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- name: Install Rust toolchain
30+
uses: dtolnay/rust-toolchain@stable
31+
with:
32+
components: rustfmt, clippy
33+
34+
- name: Run Clippy
35+
run: cargo clippy -- -D warnings
36+
37+
- name: Run tests
38+
run: cargo test
39+
40+
build:
41+
name: Build
42+
needs: test
43+
runs-on: ubuntu-latest
44+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
45+
steps:
46+
- name: Checkout repository
47+
uses: actions/checkout@v5
48+
with:
49+
fetch-depth: 0
50+
51+
- name: Install Rust toolchain
52+
uses: dtolnay/rust-toolchain@stable
53+
54+
- name: Cache dependencies
55+
uses: Swatinem/rust-cache@v2
56+
57+
- name: Install system dependencies
58+
run: |
59+
sudo apt-get update
60+
sudo apt-get install -y lld
61+
62+
- name: Build site
63+
run: cargo run --release
64+
65+
- name: Upload artifact
66+
uses: actions/upload-pages-artifact@v3
67+
with:
68+
path: ./output
69+
70+
deploy:
71+
name: Deploy
72+
needs: build
73+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
74+
environment:
75+
name: github-pages
76+
url: ${{ steps.deployment.outputs.page_url }}
77+
runs-on: ubuntu-latest
78+
steps:
79+
- name: Deploy to GitHub Pages
80+
id: deployment
81+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
output
2+
3+
# Added by cargo
4+
5+
/target
6+
7+
# Tailwind binary (cross-platform)
8+
tailwind*

0 commit comments

Comments
 (0)