Files
OpenBB/.github/workflows/gh-pages.yml
jmaslek d7cbe6374f Hugo fix (#947)
Co-authored-by: James Maslek <james@macbook-pro.myfiosgateway.com>
2021-11-15 20:15:16 +03:00

32 lines
862 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
env:
BEACON_TOKEN: ${{ secrets.HUGO_ANALYTICS }}
run: |
sed -i -e "s/{%BEACON%}/$BEACON_TOKEN/g" themes/hugo-geekdoc/layouts/partials/foot.html
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