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 779985c322
Some checks failed
Build & deploy / Build & publish server image (pull_request) Has been skipped
Build & deploy / Build & deploy website (pull_request) Failing after 16s
No dumb comments
2026-09-14 22:13:15 +01:00

60 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@v4
with:
node-version-file: .nvmrc
- name: Install dependencies
# No lockfiles are committed (see .gitignore), so use `npm install`.
run: npm install && npm run init
- 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: declared
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 }}