Restrict deployment to main branch CI
This commit is contained in:
parent
d165ac0753
commit
5bda3ee4af
|
|
@ -0,0 +1,22 @@
|
|||
name: Build and Deploy API
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'finnow-api/**'
|
||||
- '.gitea/workflows/api.yaml'
|
||||
branches-ignore:
|
||||
- main
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dlang-community/setup-dlang@v2
|
||||
with:
|
||||
compiler: ldc-latest
|
||||
- name: Test
|
||||
run: dub test
|
||||
working-directory: ./finnow-api
|
||||
- name: Build
|
||||
run: dub build --build=release
|
||||
working-directory: ./finnow-api
|
||||
|
|
@ -4,6 +4,8 @@ on:
|
|||
paths:
|
||||
- 'finnow-api/**'
|
||||
- '.gitea/workflows/api.yaml'
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
|
|
@ -0,0 +1,24 @@
|
|||
name: Build and Deploy Web App
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'web-app/**'
|
||||
- '.gitea/workflows/web-app.yaml'
|
||||
branches-ignore:
|
||||
- main
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22.x'
|
||||
- name: Enable Corepack
|
||||
run: corepack enable
|
||||
- name: Install Dependencies
|
||||
run: yarn install --immutable
|
||||
working-directory: ./web-app
|
||||
- name: Build
|
||||
run: yarn build
|
||||
working-directory: ./web-app
|
||||
|
|
@ -4,6 +4,8 @@ on:
|
|||
paths:
|
||||
- 'web-app/**'
|
||||
- '.gitea/workflows/web-app.yaml'
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
Loading…
Reference in New Issue