ci: use forgejo-native shell steps on hosted runners
This commit is contained in:
parent
a527b0bdbb
commit
5d55bc1d52
1 changed files with 4 additions and 21 deletions
|
|
@ -15,28 +15,11 @@ jobs:
|
||||||
# Available labels in this repo are: codeberg-tiny, codeberg-small, codeberg-medium.
|
# Available labels in this repo are: codeberg-tiny, codeberg-small, codeberg-medium.
|
||||||
runs-on: codeberg-medium
|
runs-on: codeberg-medium
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Deploy website + worker
|
||||||
|
|
||||||
- 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:
|
env:
|
||||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
cd deploy/cloudflare-worker
|
pwd
|
||||||
npm ci
|
ls -la
|
||||||
npm run deploy
|
./scripts/deploy-workers.sh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue