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:
|
paths:
|
||||||
- 'finnow-api/**'
|
- 'finnow-api/**'
|
||||||
- '.gitea/workflows/api.yaml'
|
- '.gitea/workflows/api.yaml'
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
runs-on: ubuntu-latest
|
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:
|
paths:
|
||||||
- 'web-app/**'
|
- 'web-app/**'
|
||||||
- '.gitea/workflows/web-app.yaml'
|
- '.gitea/workflows/web-app.yaml'
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue