mirror of
https://codeberg.org/JasterV/jaster.xyz.git
synced 2026-04-26 18:10:01 +00:00
[chore] Update deploy workflow to depend on CI and CI to run only on PRs
This commit is contained in:
parent
588cf9ddda
commit
eda6c0a5e2
2 changed files with 8 additions and 6 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -1,7 +1,9 @@
|
||||||
name: Run CI checks
|
name: Run CI checks
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- "main"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci:
|
ci:
|
||||||
|
|
|
||||||
10
.github/workflows/deploy.yml
vendored
10
.github/workflows/deploy.yml
vendored
|
|
@ -10,6 +10,10 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
ci:
|
||||||
|
uses: ./.github/workflows/ci.yml
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
web-deploy:
|
web-deploy:
|
||||||
name: 🎉 Deploy
|
name: 🎉 Deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -25,11 +29,7 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
bun install
|
bun install
|
||||||
|
|
||||||
- name: Run check
|
|
||||||
run: |
|
|
||||||
bun run check
|
|
||||||
|
|
||||||
- name: 🔨 Build Project
|
- name: 🔨 Build Project
|
||||||
run: |
|
run: |
|
||||||
bun run build
|
bun run build
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue