Skip to content

Commit edc8528

Browse files
committed
Improve CI
1 parent 47e490a commit edc8528

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

.github/workflows/rust.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ name: Check
33
on:
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

915
env:
1016
CARGO_TERM_COLOR: always
@@ -14,7 +20,8 @@ jobs:
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:

.github/workflows/website.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,39 @@ name: Website
33
on:
44
push:
55
branches: [main]
6+
paths: [website]
67

78
jobs:
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

0 commit comments

Comments
 (0)