Merge pull request #14 from airbytehq/natalie-ga4 #163
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
- hugo | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | |
# - name: Checkout python | |
# uses: actions/checkout@v2 | |
# # Setup steps | |
# - uses: actions/setup-python@v2 | |
# with: | |
# python-version: "3.9.11" | |
# # hack to have lower-case links instead e.g. instead of term/Apache-Avro we have term/apache-avro | |
# - name: Convert links of terms to lower case | |
# run: python3 lower_case.py | |
- name: Build Link Index | |
uses: jackyzha0/[email protected] | |
with: | |
index: true | |
input: content | |
output: assets/indices | |
root: . | |
# - name: Convert linkIndex to lower case (assets) | |
# run: sudo python3 lower_link_index.py "assets/indices/" | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: 'latest' | |
extended: true | |
- name: Build Hugo | |
run: hugo --minify | |
# # hack to also update graph view to lower-case (otherwise links are not showing correctly) | |
# - name: Convert links to lower case (public) | |
# run: sudo python3 lower_link_index.py "public/indices/" | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
personal_token: ${{ secrets.PERSONAL_TOKEN }} | |
publish_dir: ./public | |
external_repository: airbyteglossary/airbyteglossary.github.io | |
publish_branch: master # deploying branch | |
cname: glossary.airbyte.com # without trailing slash #https://airbytehq.github.io/brain |