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
3
3
on :
4
4
push :
5
5
branches : [main]
6
+ paths-ignore :
7
+ - website
8
+ - ' *.md'
6
9
pull_request :
7
10
branches : [main]
11
+ paths-ignore :
12
+ - website
13
+ - ' *.md'
8
14
9
15
env :
10
16
CARGO_TERM_COLOR : always
14
20
runs-on : ubuntu-latest
15
21
steps :
16
22
- uses : actions/checkout@v4
17
- - run : cargo clippy -- --deny warnings
23
+ - name : Clippy
24
+ run : cargo clippy -- --deny warnings
18
25
fmt :
19
26
runs-on : ubuntu-latest
20
27
steps :
Original file line number Diff line number Diff line change @@ -3,43 +3,39 @@ name: Website
3
3
on :
4
4
push :
5
5
branches : [main]
6
+ paths : [website]
6
7
7
8
jobs :
8
- # Build & upload the static files as an artifact
9
9
build :
10
10
defaults :
11
11
run :
12
12
working-directory : website
13
-
14
13
runs-on : ubuntu-latest
15
14
steps :
16
15
- uses : actions/checkout@v4
17
- - name : Install Zola
18
- run : sudo snap install zola
19
16
- name : Install TailwindCSS
20
- run : npm install @tailwindcss/cli
17
+ run : npm install
21
18
- 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
23
22
- name : Build site
24
- run : zola build
23
+ run : ./ zola build
25
24
- name : Upload static files as artifact
26
25
uses : actions/upload-pages-artifact@v3
27
26
with :
28
27
path : public/
29
28
30
29
deploy :
31
30
needs : build
32
-
33
31
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
34
32
permissions :
35
33
pages : write # to deploy to Pages
36
34
id-token : write # to verify the deployment originates from an appropriate source
37
-
38
35
# Deploy to the github-pages environment
39
36
environment :
40
37
name : github-pages
41
38
url : ${{ steps.deployment.outputs.page_url }}
42
-
43
39
runs-on : ubuntu-latest
44
40
steps :
45
41
- name : Deploy to GitHub Pages
You can’t perform that action at this time.
0 commit comments