decla-red/.forgejo/workflows/deploy.yml
Workflow config file is invalid. Please check your config file: Line: 12 Column 3: Failed to match string: Line: 12 Column 3: Expected a scalar got mapping Line: 12 Column 3: Failed to match concurrency-mapping: Line: 12 Column 10: Unknown Variable Access gitea Line: 12 Column 10: Unknown Variable Access gitea Forgejo Actions YAML Schema validation error
Andras Schmelczer b61db80823
All checks were successful
Build & deploy / Build & publish server image (pull_request) Has been skipped
Build & deploy / Build & deploy website (pull_request) Successful in 48s
Update actions/setup-node action to v7
2026-10-30 17:45:07 +00:00

63 lines
1.4 KiB
YAML

name: Build & deploy
on:
push:
branches: [main]
tags: ['v*']
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ gitea.workflow }}-${{ gitea.ref }}
cancel-in-progress: true
jobs:
website:
name: Build & deploy website
runs-on: docker
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
- name: Install dependencies
run: |
npm ci
npm --prefix shared ci
npm --prefix frontend ci
npm --prefix backend ci
- name: Build (shared -> frontend -> backend)
run: npm run build
- name: Test
run: npm test
- name: Lint
run: npm run lint:check
- name: Deploy to host pages mount
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: http://forgejo:3000/andras/ci-actions/deploy-pages@main
with:
source: frontend/dist
target: doppler
server-image:
name: Build & publish server image
runs-on: docker
if: github.event_name != 'pull_request'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and publish server image
uses: http://forgejo:3000/andras/ci-actions/docker-publish@main
with:
context: .
image-suffix: -server
token: ${{ secrets.FORGEJO_PACKAGE_TOKEN }}