This repository was archived by the owner on Mar 27, 2025. It is now read-only.
Add maximum signup limit #170
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |