Add Forgejo Actions workflow (copied from .github/workflows/deploy.yml)
Some checks failed
Build and deploy / deploy (push) Failing after 4s
Some checks failed
Build and deploy / deploy (push) Failing after 4s
This commit is contained in:
parent
077151f429
commit
1acb2fc6bc
1 changed files with 48 additions and 0 deletions
48
.forgejo/workflows/deploy.yml
Normal file
48
.forgejo/workflows/deploy.yml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
name: Build and deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: deploy-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: "1.3.14"
|
||||
|
||||
- name: Set up JDK 25
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: "temurin"
|
||||
java-version: "25"
|
||||
|
||||
- name: Install JS deps
|
||||
run: bun install
|
||||
|
||||
- name: Package all plugins
|
||||
run: ./gradlew packageAllPlugins
|
||||
|
||||
- name: Generate repository index
|
||||
run: bun run generate-index -- --dist build/dist --base-url https://next.jarviscli.dev --out build/dist/index.json
|
||||
|
||||
- name: Deploy to Cloudflare Workers
|
||||
env:
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
run: bunx wrangler deploy
|
||||
|
||||
- name: Verify deployed index and artifact integrity
|
||||
run: bun .github/scripts/verify-deploy.mjs
|
||||
Loading…
Add table
Reference in a new issue