Skip to content

Commit

Permalink
New github pages strategy.
Browse files Browse the repository at this point in the history
  • Loading branch information
finnbear committed Mar 13, 2024
1 parent fc6598a commit 58f4035
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 940 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:

# Build wasm
- name: Build WASM
run: cd test-app && trunk --config Trunk.prod.toml build --release --filehash=false
run: mkdir docs && cd test-app && trunk --config Trunk.prod.toml build --release --filehash=false

# Optmize wasm (We should use a higher level, but it never completes)
- name: Optimize WASM
Expand All @@ -53,16 +53,13 @@ jobs:
wasm-opt docs/test-app_bg.wasm -o docs/test-app_bg.opt.wasm -O1 --debug --strip-dwarf --strip-debug
mv docs/test-app_bg.opt.wasm docs/test-app_bg.wasm
# Commit and push
- name: Commit files
run: |
ls docs -l
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
git add .
git commit -m "Build Gallery"
- name: Push changes
uses: ad-m/github-push-action@master
# Deploy
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
path: './docs/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Cargo.lock
target/
docs/
dist
.idea
*.xml
44 changes: 0 additions & 44 deletions docs/index.html

This file was deleted.

59 changes: 0 additions & 59 deletions docs/loadingIndicator.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/main.css

This file was deleted.

1 change: 0 additions & 1 deletion docs/scroll_to_top.css

This file was deleted.

1 change: 0 additions & 1 deletion docs/switch.css

This file was deleted.

Loading

0 comments on commit 58f4035

Please sign in to comment.