Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Rename witathon email references #165

Rename witathon email references

Rename witathon email references #165

Workflow file for this run

name: Build and deploy frontend
on:
push:
branches: ['main']
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hecrj/setup-rust-action@v2
with:
rust-version: stable
targets: wasm32-unknown-unknown
- name: Install trunk
run: |
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
cargo binstall -y trunk
- name: Build with trunk
run: trunk build --release # --filehash false
working-directory: ./packages/frontend
env:
BHW_FRONTEND_API_URL: "https://bhw25-api.bathcs.com"
- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy --project-name=bh25 --branch=main packages/frontend/dist