mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-11 20:01:16 +00:00
28 lines
685 B
YAML
Vendored
28 lines
685 B
YAML
Vendored
name: github pages
|
|
on: push
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- name: Git checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup hugo
|
|
uses: peaceiris/actions-hugo@v2
|
|
with:
|
|
hugo-version: '0.87.0'
|
|
extended: true
|
|
|
|
- name: Build
|
|
# remove --minify tag if you do not need it
|
|
# docs: https://gohugo.io/hugo-pipes/minification/
|
|
working-directory: ./website
|
|
run: hugo
|
|
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
if: github.ref == 'refs/heads/main'
|
|
with:
|
|
personal_token: ${{ secrets.DEPLOY_TOKEN }}
|
|
publish_dir: ./website/public
|