forked from OpenBB-finance/OpenBBTerminal
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 928 Bytes
/
gh-pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: github pages
on: push
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # actions/checkout v3.0.2
- 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