Skip to content

Create a GitHub pages site with the bevy_ggrs example #12

Create a GitHub pages site with the bevy_ggrs example

Create a GitHub pages site with the bevy_ggrs example #12

Workflow file for this run

on:
push:
pull_request:
name: Website
jobs:
build:
name: Build Examples
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: wasm32-unknown-unknown
- name: Install trunk
uses: jetli/[email protected]
- name: Rust Cache
uses: Swatinem/[email protected]
- name: Build Website
run: |
cd website
trunk build
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
path: website/dist
deploy:
name: Deploy Pages
needs:
- build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy GitHub Pages site
id: deployment
uses: actions/[email protected]