diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52ffb9e..673250d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,12 +54,15 @@ jobs: - name: Build run: cargo build --release --target wasm32-unknown-unknown - name: Copy Assets - run: mkdir -p serve/app && { cp -r assets imported_assets serve/static/app || true; } + run: mkdir -p public/app && { cp -r assets imported_assets public/static/app || true; } - name: Run Bindgen - run: wasm-bindgen --target web --out-dir serve/static/app --out-name stratmat target/wasm32-unknown-unknown/release/stratmat.wasm - - name: Deploy - uses: ptienchuan/deploy-github-pages-action@1.0.0 - with: - source-directory: serve + run: wasm-bindgen --target web --out-dir public/static/app --out-name stratmat target/wasm32-unknown-unknown/release/stratmat.wasm + - name: Deploy to GitHub Pages env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: crazy-max/ghaction-github-pages@v4.1.0 + with: + build_dir: public + fqdn: stratmat.dynamis.gg + jekyll: false + \ No newline at end of file diff --git a/serve/.nojekyll b/serve/.nojekyll deleted file mode 100644 index e69de29..0000000 diff --git a/serve/CNAME b/serve/CNAME deleted file mode 100644 index 23e2dd9..0000000 --- a/serve/CNAME +++ /dev/null @@ -1 +0,0 @@ -stratmat.dynamis.gg