File tree Expand file tree Collapse file tree 2 files changed +14
-11
lines changed
Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,14 @@ name: Check
33on :
44 push :
55 branches : [main]
6+ paths-ignore :
7+ - website
8+ - ' *.md'
69 pull_request :
710 branches : [main]
11+ paths-ignore :
12+ - website
13+ - ' *.md'
814
915env :
1016 CARGO_TERM_COLOR : always
1420 runs-on : ubuntu-latest
1521 steps :
1622 - uses : actions/checkout@v4
17- - run : cargo clippy -- --deny warnings
23+ - name : Clippy
24+ run : cargo clippy -- --deny warnings
1825 fmt :
1926 runs-on : ubuntu-latest
2027 steps :
Original file line number Diff line number Diff line change @@ -3,43 +3,39 @@ name: Website
33on :
44 push :
55 branches : [main]
6+ paths : [website]
67
78jobs :
8- # Build & upload the static files as an artifact
99 build :
1010 defaults :
1111 run :
1212 working-directory : website
13-
1413 runs-on : ubuntu-latest
1514 steps :
1615 - uses : actions/checkout@v4
17- - name : Install Zola
18- run : sudo snap install zola
1916 - name : Install TailwindCSS
20- run : npm install @tailwindcss/cli
17+ run : npm install
2118 - name : Build CSS
22- - run : npx @tailwindcss/cli -m -i input.css -o static/main.css
19+ run : npx @tailwindcss/cli -m -i input.css -o static/main.css
20+ - name : Download Zola
21+ run : curl -fsSL https://github.com/getzola/zola/releases/download/v0.20.0/zola-v0.20.0-x86_64-unknown-linux-gnu.tar.gz | tar xz
2322 - name : Build site
24- run : zola build
23+ run : ./ zola build
2524 - name : Upload static files as artifact
2625 uses : actions/upload-pages-artifact@v3
2726 with :
2827 path : public/
2928
3029 deploy :
3130 needs : build
32-
3331 # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
3432 permissions :
3533 pages : write # to deploy to Pages
3634 id-token : write # to verify the deployment originates from an appropriate source
37-
3835 # Deploy to the github-pages environment
3936 environment :
4037 name : github-pages
4138 url : ${{ steps.deployment.outputs.page_url }}
42-
4339 runs-on : ubuntu-latest
4440 steps :
4541 - name : Deploy to GitHub Pages
You can’t perform that action at this time.
0 commit comments