Merge branch 'workflow'

This commit is contained in:
karl 2025-06-12 10:19:33 +08:00
commit f50160194f
5 changed files with 20 additions and 12 deletions

View File

@ -3,7 +3,8 @@ name: Release
on: on:
push: push:
branches: branches:
- main # or whatever branch you want to use - next # or whatever branch you want to use
workflow_dispatch:
jobs: jobs:
release: release:

View File

@ -2,12 +2,12 @@ name: Create and publish Docker images with specific build args
on: on:
workflow_dispatch: workflow_dispatch:
push: # push:
branches: # branches:
- main # - main
- dev # - dev
tags: # tags:
- v* # - v*
env: env:
REGISTRY: ghcr.io REGISTRY: ghcr.io

View File

@ -5,6 +5,7 @@ on:
branches: branches:
- main - main
- dev - dev
- next
paths: paths:
- 'backend/**' - 'backend/**'
- 'pyproject.toml' - 'pyproject.toml'
@ -13,6 +14,7 @@ on:
branches: branches:
- main - main
- dev - dev
- next
paths: paths:
- 'backend/**' - 'backend/**'
- 'pyproject.toml' - 'pyproject.toml'

View File

@ -5,6 +5,7 @@ on:
branches: branches:
- main - main
- dev - dev
- next
paths-ignore: paths-ignore:
- 'backend/**' - 'backend/**'
- 'pyproject.toml' - 'pyproject.toml'
@ -13,6 +14,7 @@ on:
branches: branches:
- main - main
- dev - dev
- next
paths-ignore: paths-ignore:
- 'backend/**' - 'backend/**'
- 'pyproject.toml' - 'pyproject.toml'
@ -22,6 +24,8 @@ jobs:
build: build:
name: 'Format & Build Frontend' name: 'Format & Build Frontend'
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
NODE_OPTIONS: '--max-old-space-size=4096'
steps: steps:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -1,11 +1,12 @@
name: Release to PyPI name: Release to PyPI
on: on:
push: # push:
branches: # branches:
- main # or whatever branch you want to use # - main # or whatever branch you want to use
- pypi-release # - pypi-release
workflow_dispatch:
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest