every.channel: sanitized baseline
This commit is contained in:
commit
897e556bea
258 changed files with 74298 additions and 0 deletions
40
.forgejo/workflows/deploy-cloudflare.yml
Normal file
40
.forgejo/workflows/deploy-cloudflare.yml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
name: deploy-cloudflare
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
workflow_dispatch: {}
|
||||
|
||||
concurrency:
|
||||
group: cloudflare-deploy-${{ forgejo.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "20"
|
||||
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
targets: wasm32-unknown-unknown
|
||||
|
||||
- name: Build Web App (Trunk)
|
||||
run: |
|
||||
set -euo pipefail
|
||||
cargo install trunk --locked
|
||||
cd apps/tauri/ui
|
||||
trunk build --release --public-url /
|
||||
|
||||
- name: Deploy Worker (Wrangler)
|
||||
env:
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
cd deploy/cloudflare-worker
|
||||
npm ci
|
||||
npm run deploy
|
||||
Loading…
Add table
Add a link
Reference in a new issue