-
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
9 additions
and
8 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 |
---|---|---|
|
@@ -65,20 +65,21 @@ jobs: | |
# Build our Dioxus app in release. | ||
- name: Build app | ||
working-directory: app | ||
run: dx build --release --platform web --features web | ||
run: 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 +94,6 @@ jobs: | |
uses: JamesIves/[email protected] | ||
with: | ||
branch: static-develop # 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 |