Skip to content

Commit 91b83c9

Browse files
committed
ci: fix build gh-pages workflow
1 parent 7ad2fa8 commit 91b83c9

File tree

36 files changed

+7
-12
lines changed

36 files changed

+7
-12
lines changed

.github/workflows/get-melt-changed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: tj-actions/changed-files@v36
2323
with:
2424
files: |
25-
gh-pages
25+
demo
2626
src
2727
Cargo.toml
2828

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
version: "latest"
3131
- name: Deploy GitHub Pages
3232
run: |
33-
cd gh-pages
33+
cd demo
3434
trunk build --release
3535
git worktree add gh-pages
3636
git config user.name "Deploy demo from CI"
@@ -39,7 +39,7 @@ jobs:
3939
# Delete the ref to avoid keeping history.
4040
git update-ref -d refs/heads/gh-pages
4141
rm -rf *
42-
mv ../docs/* .
42+
mv ../dist/* .
4343
git add .
4444
git commit -m "Deploy demo $GITHUB_SHA to gh-pages"
4545
git push --force --set-upstream origin gh-pages

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Cargo.lock
1010
**/*.rs.bk
1111

1212
/examples/**/dist
13-
/gh-pages/dist
13+
/demo/dist
1414
/docs
1515

1616
.DS_Store

.vscode/settings.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ icondata = { version = "0.0.7", features = [
2424
] }
2525

2626
[workspace]
27-
members = ["gh-pages"]
27+
members = ["demo"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "gh-pages"
2+
name = "demo"
33
version = "0.1.0"
44
edition = "2021"
55

File renamed without changes.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[build]
22
target = "index.html"
33
public_url = "/melt-ui/"
4-
dist = "../docs"
54
# release = true
65

76
[watch]

demo/gh-pages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 5f44d23c39fef044c21783a9944070aed5305952
File renamed without changes.

0 commit comments

Comments
 (0)