File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ concurrency:
18
18
19
19
jobs :
20
20
Github-Pages-Release :
21
-
22
21
timeout-minutes : 10
23
22
24
23
environment :
42
41
- name : lint
43
42
run : cargo clippy & cargo fmt
44
43
45
-
46
44
- name : Download and install tailwindcss binary
47
- run : npm install -D tailwindcss daisyui && npx @tailwindcss/cli -i "./style/input.css" -o "./style/output.css" # run tailwind
45
+ run : npm install -D tailwindcss daisyui && npx @tailwindcss/cli -i "./style/input.css" -o "./style/output.css" # run tailwind
48
46
49
47
- name : Download and install Trunk binary
50
48
run : wget -qO- https://github.com/trunk-rs/trunk/releases/download/v0.21.12/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
@@ -55,16 +53,16 @@ jobs:
55
53
# this is necessary for github pages where the site is deployed to username.github.io/repo_name and all files must be requested
56
54
# relatively as favicon.ico. if we skip public-url option, the href paths will instead request username.github.io/favicon.ico which
57
55
# will obviously return error 404 not found.
58
- run : ./trunk build --release --public-url "/blog/"
59
-
56
+ run : |
57
+ ./trunk build --release --public-url "/blog/"
58
+ cp ./dist/index.html ./dist/404.html
60
59
61
60
# Deploy to gh-pages branch
62
61
# - name: Deploy 🚀
63
62
# uses: JamesIves/github-pages-deploy-action@v4
64
63
# with:
65
64
# folder: dist
66
65
67
-
68
66
# Deploy with Github Static Pages
69
67
70
68
- name : Setup Pages
77
75
uses : actions/upload-pages-artifact@v3
78
76
with :
79
77
# Upload dist dir
80
- path : ' ./dist'
78
+ path : " ./dist"
81
79
82
80
- name : Deploy to GitHub Pages 🚀
83
81
id : deployment
You can’t perform that action at this time.
0 commit comments