-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,26 +59,26 @@ jobs: | |
|
||
# Install the Dioxus CLI | ||
- name: Install Dioxus | ||
# run: cargo binstall dioxus-cli -y --force | ||
run: cargo install --git https://github.com/DioxusLabs/dioxus.git dioxus-cli --locked | ||
run: cargo install --git https://github.com/DioxusLabs/dioxus.git --rev 87c2f64f134756578f6cf9e12fd085b9bb03c5c7 dioxus-cli --locked | ||
|
||
# Build our Dioxus app in release. | ||
- name: Build app | ||
working-directory: app | ||
run: dx build --release --platform web --features web | ||
run: dx clean ; dx build --profile release --platform static-generation --features static-generation | ||
|
||
# Fixup index.html (see https://github.com/DioxusLabs/dioxus/issues/2847) | ||
- name: Fixup index.html | ||
- name: Fixup build output | ||
run: | | ||
cd dist | ||
for f in *.css; do | ||
sed -i "/<\/head>/i <link rel=\"stylesheet\" href=\"/$(basename "$f")\">" index.html | ||
done | ||
./dist/birdtalk | ||
cp -r ./static/* ./dist/public | ||
cd dist/public | ||
sed -i 's/<html>/<html lang="en">/' index.html | ||
sed -i 's/<html>/<html lang="en">/' birds/index.html | ||
sed -i 's/<html>/<html lang="en">/' play/index.html | ||
# Create our required `404.html` page. | ||
- name: Create 404.html | ||
run: cp dist/index.html dist/404.html | ||
run: cp dist/public/index.html dist/public/404.html | ||
|
||
- uses: supabase/setup-cli@v1 | ||
with: | ||
|
@@ -93,6 +93,6 @@ jobs: | |
uses: JamesIves/[email protected] | ||
with: | ||
branch: static-production # The branch we have GitHub pages setup in. | ||
folder: dist # The folder we want to copy to the `gh-pages` branch. | ||
folder: dist/public # The folder we want to copy to the `gh-pages` branch. | ||
target-folder: . # The destination we want our files copied to. In this case, we want them to be a the root level. | ||
clean: true |