Skip to content

Commit 37945c0

Browse files
committed
changes, commits squashed
1 parent 26157a1 commit 37945c0

Some content is hidden

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

64 files changed

+1223
-109197
lines changed

.github/workflows/publish.yml

Lines changed: 56 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,59 @@
11
name: build and publish site
22
on:
3-
push:
4-
branches: [ "main" ]
5-
workflow_dispatch:
3+
push:
4+
branches: [ "main" ]
5+
workflow_dispatch:
66
jobs:
7-
build:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- name: checkout
11-
uses: actions/checkout@v4
12-
- name: Install runtime deps (envsubst)
13-
run: sudo apt-get update && sudo apt-get install -y gettext
14-
- name: cache cargo registry, git, bin and target
15-
uses: actions/cache@v4
16-
with:
17-
path: |
18-
~/.cargo/registry
19-
~/.cargo/git
20-
~/.cargo/bin
21-
target
22-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
23-
restore-keys: |
24-
${{ runner.os }}-cargo-
25-
- name: setup rust toolchain
26-
uses: actions-rs/toolchain@v1
27-
with:
28-
toolchain: stable
29-
override: true
30-
- name: ensure cargo bin is on PATH
31-
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
32-
- name: install comrak if missing
33-
run: |
34-
if [ ! -x "$HOME/.cargo/bin/comrak" ]; then
35-
cargo install --locked comrak
36-
else
37-
echo "comrak already available"
38-
fi
39-
- name: build site
40-
run: |
41-
chmod +x ./gen.sh
42-
./gen.sh
43-
- name: upload pages artifact
44-
uses: actions/upload-pages-artifact@v4
45-
with:
46-
path: ./public
47-
deploy:
48-
runs-on: ubuntu-latest
49-
needs: build
50-
steps:
51-
- name: deploy to GitHub Pages
52-
uses: actions/deploy-pages@v4
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: checkout
11+
uses: actions/checkout@v4
12+
- name: install runtime deps (envsubst)
13+
run: sudo apt-get update && sudo apt-get install -y gettext
14+
- name: cache cargo registry, git, bin and target
15+
uses: actions/cache@v4
16+
with:
17+
path: |
18+
~/.cargo/registry
19+
~/.cargo/git
20+
~/.cargo/bin
21+
target
22+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
23+
restore-keys: |
24+
${{ runner.os }}-cargo-
25+
- name: setup rust toolchain
26+
uses: actions-rs/toolchain@v1
27+
with:
28+
toolchain: stable
29+
override: true
30+
- name: ensure cargo bin is on PATH
31+
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
32+
- name: install comrak if missing
33+
run: |
34+
if [ ! -x "$HOME/.cargo/bin/comrak" ]; then
35+
cargo install --locked comrak
36+
else
37+
echo "comrak already available"
38+
fi
39+
- name: export short commit sha
40+
run: echo "COMMIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
41+
- name: build site
42+
run: |
43+
chmod +x ./gen.sh
44+
./gen.sh
45+
- name: ensure .nojekyll present
46+
run: touch public/.nojekyll
47+
- name: upload pages artifact
48+
uses: actions/upload-pages-artifact@v4
49+
with:
50+
path: ./public
51+
deploy:
52+
runs-on: ubuntu-latest
53+
needs: build
54+
permissions:
55+
pages: write
56+
id-token: write
57+
steps:
58+
- name: deploy to github pages
59+
uses: actions/deploy-pages@v4

LICENSE.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
Copyright (c) 2024–2025 Aashvik Tyagi
2-
3-
This work is licensed under the [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-nc-sa/4.0/).
1+
The content of this site is licensed under the [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-nc-sa/4.0/), while code is under the [GNU General Public License](https://www.gnu.org/licenses/gpl-3.0.html).

0 commit comments

Comments
 (0)