mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-22 22:09:22 -05:00
ci: fix build gh-pages workflow
This commit is contained in:
parent
7ad2fa8a9a
commit
91b83c9025
36 changed files with 7 additions and 12 deletions
2
.github/workflows/get-melt-changed.yml
vendored
2
.github/workflows/get-melt-changed.yml
vendored
|
@ -22,7 +22,7 @@ jobs:
|
||||||
uses: tj-actions/changed-files@v36
|
uses: tj-actions/changed-files@v36
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
gh-pages
|
demo
|
||||||
src
|
src
|
||||||
Cargo.toml
|
Cargo.toml
|
||||||
|
|
||||||
|
|
4
.github/workflows/gh-pages.yml
vendored
4
.github/workflows/gh-pages.yml
vendored
|
@ -30,7 +30,7 @@ jobs:
|
||||||
version: "latest"
|
version: "latest"
|
||||||
- name: Deploy GitHub Pages
|
- name: Deploy GitHub Pages
|
||||||
run: |
|
run: |
|
||||||
cd gh-pages
|
cd demo
|
||||||
trunk build --release
|
trunk build --release
|
||||||
git worktree add gh-pages
|
git worktree add gh-pages
|
||||||
git config user.name "Deploy demo from CI"
|
git config user.name "Deploy demo from CI"
|
||||||
|
@ -39,7 +39,7 @@ jobs:
|
||||||
# Delete the ref to avoid keeping history.
|
# Delete the ref to avoid keeping history.
|
||||||
git update-ref -d refs/heads/gh-pages
|
git update-ref -d refs/heads/gh-pages
|
||||||
rm -rf *
|
rm -rf *
|
||||||
mv ../docs/* .
|
mv ../dist/* .
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Deploy demo $GITHUB_SHA to gh-pages"
|
git commit -m "Deploy demo $GITHUB_SHA to gh-pages"
|
||||||
git push --force --set-upstream origin gh-pages
|
git push --force --set-upstream origin gh-pages
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -10,7 +10,7 @@ Cargo.lock
|
||||||
**/*.rs.bk
|
**/*.rs.bk
|
||||||
|
|
||||||
/examples/**/dist
|
/examples/**/dist
|
||||||
/gh-pages/dist
|
/demo/dist
|
||||||
/docs
|
/docs
|
||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
"rust-analyzer.linkedProjects": [
|
|
||||||
"gh-pages/Cargo.toml"
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -24,4 +24,4 @@ icondata = { version = "0.0.7", features = [
|
||||||
] }
|
] }
|
||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
members = ["gh-pages"]
|
members = ["demo"]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[package]
|
[package]
|
||||||
name = "gh-pages"
|
name = "demo"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
[build]
|
[build]
|
||||||
target = "index.html"
|
target = "index.html"
|
||||||
public_url = "/melt-ui/"
|
public_url = "/melt-ui/"
|
||||||
dist = "../docs"
|
|
||||||
# release = true
|
# release = true
|
||||||
|
|
||||||
[watch]
|
[watch]
|
1
demo/gh-pages
Submodule
1
demo/gh-pages
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 5f44d23c39fef044c21783a9944070aed5305952
|
Before Width: | Height: | Size: 216 B After Width: | Height: | Size: 216 B |
Loading…
Add table
Reference in a new issue