Skip to content

feat: experiments with pulldown-cmark #158

feat: experiments with pulldown-cmark

feat: experiments with pulldown-cmark #158

name: Deploy Staging
on:
push:
branches:
- main
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- name: Checkout Source Code
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
components: rustfmt, clippy
- name: Setup Rust Cache
uses: Swatinem/rust-cache@v2
- name: Setup Cargo Binstall
uses: cargo-bins/cargo-binstall@main
- name: Install Rust Binaries
run: |
cargo binstall -y --force trunk
- name: Build
working-directory: ./crates/www
run: trunk build --release
- name: Deploy Client
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
command: pages deploy ./dist --project-name=${{ secrets.CLOUDFLARE_PAGES_STAGING_PROJECT_NAME }}
workingDirectory: ./crates/www
gitHubToken: ${{ secrets.GITHUB_TOKEN }}