Skip to content

ci: moving docs to github action too #4

ci: moving docs to github action too

ci: moving docs to github action too #4

Workflow file for this run

name: ci
on: [ push, workflow_dispatch ]
jobs:
build_containers:
name: Build containers
if: ${{ contains(github.event.head_commit.message, '[build ') }}
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Build container
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: bash scripts/build_container.sh "${{ github.event.head_commit.message }}"
build_docs:
if: ${{ contains(github.event.head_commit.message, 'doc') }}
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Build docs
run: bash scripts/build_docs.sh
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/.vuepress/dist