2020-12-22 18:15:22 +03:00
|
|
|
name: vlib modules CI
|
|
|
|
|
|
|
|
on:
|
2021-04-20 17:10:21 +03:00
|
|
|
pull_request:
|
2020-12-22 18:15:22 +03:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-module-docs:
|
2021-07-19 13:19:03 +03:00
|
|
|
runs-on: ubuntu-20.04
|
2020-12-22 18:15:22 +03:00
|
|
|
steps:
|
2023-02-21 14:40:24 +03:00
|
|
|
- uses: actions/checkout@v3
|
2021-07-19 13:26:36 +03:00
|
|
|
- name: Build V
|
|
|
|
run: make
|
|
|
|
- name: Build module documentation
|
|
|
|
run: ./v doc -m -f html vlib/
|
|
|
|
- name: Deploy docs to vercel
|
|
|
|
if: ${{ github.event_name == 'push' }}
|
2021-07-19 18:07:42 +03:00
|
|
|
run: npx vercel --confirm --prod --name vmodules --token ${{ secrets.VERCEL_TOKEN }} vlib/_docs/ || true
|