[sea-orm-pro] editor #563
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
paths-ignore: | |
- '.github/ISSUE_TEMPLATE/**' | |
branches: | |
- master | |
concurrency: | |
group: seaql.github.io | |
cancel-in-progress: false | |
env: | |
YARN_IGNORE_NODE: 1 | |
YARN_ENABLE_IMMUTABLE_INSTALLS: false | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
- uses: threeal/[email protected] | |
with: | |
version: 3.6.1 | |
cache: false | |
- uses: actions/cache@v4 | |
with: | |
key: ${{ github.repository }}-${{ github.ref_name }} | |
path: | | |
~/.yarn | |
SeaORM/node_modules | |
SeaORM/.docusaurus | |
SeaORM/build | |
SeaORM-X/node_modules | |
SeaORM-X/.docusaurus | |
SeaORM-X/build | |
sea-orm-pro/node_modules | |
sea-orm-pro/.docusaurus | |
sea-orm-pro/build | |
Blog/node_modules | |
Blog/.docusaurus | |
Blog/build | |
Seaography/node_modules | |
Seaography/.docusaurus | |
Seaography/build | |
SeaStreamer/node_modules | |
SeaStreamer/.docusaurus | |
SeaStreamer/build | |
- id: git-log | |
run: echo "message=$(git log --no-merges -1 --oneline)" >> $GITHUB_OUTPUT | |
- run: echo $GITHUB_OUTPUT | |
- if: ${{ contains(steps.git-log.outputs.message, '[SeaORM]') || contains(steps.git-log.outputs.message, '[full]') }} | |
run: sh build-site.sh SeaORM SeaORM | |
- if: ${{ contains(steps.git-log.outputs.message, '[SeaORM-X]') || contains(steps.git-log.outputs.message, '[full]') }} | |
run: sh build-site.sh SeaORM-X SeaORM-X | |
- if: ${{ contains(steps.git-log.outputs.message, '[SeaORM-Pro]') || contains(steps.git-log.outputs.message, '[sea-orm-pro]') || contains(steps.git-log.outputs.message, '[full]') }} | |
run: sh build-site.sh sea-orm-pro sea-orm-pro | |
- if: ${{ contains(steps.git-log.outputs.message, '[Blog]') || contains(steps.git-log.outputs.message, '[full]') }} | |
run: sh build-site.sh Blog blog | |
- if: ${{ contains(steps.git-log.outputs.message, '[Seaography]') || contains(steps.git-log.outputs.message, '[full]') }} | |
run: sh build-site.sh Seaography Seaography | |
- if: ${{ contains(steps.git-log.outputs.message, '[SeaStreamer]') || contains(steps.git-log.outputs.message, '[full]') }} | |
run: sh build-site.sh SeaStreamer SeaStreamer | |
- uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: docs | |
clean: false | |
clean-exclude: preview |