Skip to content

Commit

Permalink
ci: github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
storopoli committed Jan 20, 2024
1 parent a683148 commit 0b2b280
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: GitHub Pages

env:
CARGO_TERM_COLOR: always

on:
push:
branches:
- main

jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
# For the push to `gh-pages` branch.
contents: write
pages: write
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
- name: Install Dioxus
run: cargo install dioxus-cli
- name: Build app
run: dx build --release
- name: Deploy Project 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist
2 changes: 1 addition & 1 deletion Dioxus.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ out_dir = "dist"
asset_dir = "assets"

[web.app]

# HTML title tag content
title = "Sudoku in the Browser"
base_path = "sudoku"

[web.watcher]

Expand Down

0 comments on commit 0b2b280

Please sign in to comment.