Edit #765
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 | |
| NODE_OPTIONS: --openssl-legacy-provider | |
| jobs: | |
| deploy: | |
| name: Deploy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: Reset NodeJS Corepack | |
| run: | | |
| rm -rf ~/.corepack | |
| corepack enable | |
| - uses: threeal/setup-yarn-action@v2.0.0 | |
| with: | |
| version: 3.6.1 | |
| cache: false | |
| - id: git-log | |
| run: echo "message=$(git log --no-merges -1 --oneline)" >> $GITHUB_OUTPUT | |
| - run: echo $GITHUB_OUTPUT | |
| - name: Deploy Root | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: gh-pages | |
| folder: docs | |
| clean: true | |
| clean-exclude: | | |
| SeaORM | |
| SeaORM-X | |
| sea-orm-pro | |
| blog | |
| interview | |
| Seaography | |
| SeaStreamer | |
| preview | |
| - name: Build SeaORM | |
| if: ${{ contains(steps.git-log.outputs.message, '[SeaORM]') || contains(steps.git-log.outputs.message, '[full]') }} | |
| run: sh build-site.sh SeaORM SeaORM | |
| - name: Deploy SeaORM | |
| if: ${{ contains(steps.git-log.outputs.message, '[SeaORM]') || contains(steps.git-log.outputs.message, '[full]') }} | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: gh-pages | |
| folder: docs/SeaORM | |
| target-folder: SeaORM | |
| clean: true | |
| - name: Build SeaORM-X | |
| 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 | |
| - name: Deploy SeaORM-X | |
| if: ${{ contains(steps.git-log.outputs.message, '[SeaORM-X]') || contains(steps.git-log.outputs.message, '[full]') }} | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: gh-pages | |
| folder: docs/SeaORM-X | |
| target-folder: SeaORM-X | |
| clean: true | |
| - name: Build sea-orm-pro | |
| 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 | |
| - name: Deploy sea-orm-pro | |
| 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]') }} | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: gh-pages | |
| folder: docs/sea-orm-pro | |
| target-folder: sea-orm-pro | |
| clean: true | |
| - name: Build blog | |
| if: ${{ contains(steps.git-log.outputs.message, '[Blog]') || contains(steps.git-log.outputs.message, '[full]') }} | |
| run: sh build-site.sh Blog blog | |
| - name: Deploy blog | |
| if: ${{ contains(steps.git-log.outputs.message, '[Blog]') || contains(steps.git-log.outputs.message, '[full]') }} | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: gh-pages | |
| folder: docs/blog | |
| target-folder: blog | |
| clean: true | |
| - name: Build interview | |
| if: ${{ contains(steps.git-log.outputs.message, '[Interview]') || contains(steps.git-log.outputs.message, '[full]') }} | |
| run: sh build-site.sh Interview interview | |
| - name: Deploy interview | |
| if: ${{ contains(steps.git-log.outputs.message, '[Interview]') || contains(steps.git-log.outputs.message, '[full]') }} | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: gh-pages | |
| folder: docs/interview | |
| target-folder: interview | |
| clean: true | |
| - name: Build Seaography | |
| if: ${{ contains(steps.git-log.outputs.message, '[Seaography]') || contains(steps.git-log.outputs.message, '[full]') }} | |
| run: sh build-site.sh Seaography Seaography | |
| - name: Deploy Seaography | |
| if: ${{ contains(steps.git-log.outputs.message, '[Seaography]') || contains(steps.git-log.outputs.message, '[full]') }} | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: gh-pages | |
| folder: docs/Seaography | |
| target-folder: Seaography | |
| clean: true | |
| - name: Build SeaStreamer | |
| if: ${{ contains(steps.git-log.outputs.message, '[SeaStreamer]') || contains(steps.git-log.outputs.message, '[full]') }} | |
| run: sh build-site.sh SeaStreamer SeaStreamer | |
| - name: Deploy SeaStreamer | |
| if: ${{ contains(steps.git-log.outputs.message, '[SeaStreamer]') || contains(steps.git-log.outputs.message, '[full]') }} | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: gh-pages | |
| folder: docs/SeaStreamer | |
| target-folder: SeaStreamer | |
| clean: true | |