Restrict deployment to main branch CI
Build and Deploy Web App / build-and-deploy (push) Successful in 19s Details
Build and Deploy API / build-and-deploy (push) Successful in 1m46s Details

This commit is contained in:
Andrew Lalis 2026-06-27 18:34:59 -04:00
parent d165ac0753
commit 5bda3ee4af
4 changed files with 50 additions and 0 deletions

View File

@ -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

View File

@ -4,6 +4,8 @@ on:
paths:
- 'finnow-api/**'
- '.gitea/workflows/api.yaml'
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest

View File

@ -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

View File

@ -4,6 +4,8 @@ on:
paths:
- 'web-app/**'
- '.gitea/workflows/web-app.yaml'
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest