Skip to content

wip: migration from Travis CI to GitHub Actions #149 [build doc] #8

wip: migration from Travis CI to GitHub Actions #149 [build doc]

wip: migration from Travis CI to GitHub Actions #149 [build doc] #8

Workflow file for this run

name: Build & Deploy
on: [push]
jobs:
app:
if: ${{ !contains(github.event.head_commit.message, '[skip app]') }}
runs-on: ubuntu-latest
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
TOKEN_GITHUB: ${{ secrets.TOKEN_GITHUB }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ secrets.NODE_VERSION }}
- name: Build and deploy
run: ./.github/workflows/app.sh
doc:
if: ${{ contains(github.event.head_commit.message, '[build doc]') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ secrets.NODE_VERSION }}
- name: Build doc
run: ./.github/workflows/doc.sh
- name: Deploy doc to GitHub Pages
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/.vitepress/dist