Skip to content

Commit

Permalink
chore: deploy to GH Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Desdaemon committed Dec 31, 2023
1 parent 89f17b3 commit 170b8fd
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI
on:
push:
branches: [main]

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
web:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: taiki-e/install-action@v2
with:
tool: wasm-pack,just
- uses: subosito/flutter-action@v1
with:
channel: stable
- run: just build-web
- name: Upload artifacts
uses: actions/upload-pages-artifact@v3
with:
path: build/web
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4
5 changes: 5 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ clean:
serve *args='':
flutter pub run flutter_rust_bridge:serve {{args}}

build-web:
cd native && wasm-pack build \
--no-pack --release -m no-install --no-typescript -t no-modules -d ../pkg/native
flutter build web

# vim:expandtab:sw=4:ts=4

0 comments on commit 170b8fd

Please sign in to comment.