This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
Add debugging info (#50) #11
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
# Copyright 2021 Autodesk, Inc. All rights reserved. | |
# | |
# Use of this software is subject to the terms of the Autodesk license agreement | |
# provided at the time of installation or download, or which otherwise accompanies | |
# this software in either electronic or hard copy form. | |
# | |
name: Publish Docs | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
Publish-Docs: | |
runs-on: ubuntu-latest | |
environment: docs-build | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.6 | |
- name: Install Pandoc | |
run: sudo apt-get install -y pandoc | |
- name: Install Jekyll dependencies | |
run: bundle install --deployment | |
- name: Install tk-doc-generator requirements | |
run: pip install -r ./requirements.txt | |
- name: Generate HTML | |
env: | |
AWS_S3_ACCESS_KEY: ${{ secrets.AWS_S3_ACCESS_KEY }} | |
AWS_S3_ACCESS_TOKEN: ${{ secrets.AWS_S3_ACCESS_TOKEN }} | |
TK_GITHUB_TOKEN: ${{ secrets.TK_GITHUB_TOKEN }} | |
S3_BUCKET: sg-devdocs | |
S3_WEB_URL: http://sg-devdocs.s3-website-us-east-1.amazonaws.com | |
DOC_URL: https://developer.shotgridsoftware.com | |
DOC_PATH: /tk-doc-generator | |
PR_NUMBER: ${{ github.event.number }} | |
run: python ./actions-generate-docs.py | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@4.1.4 | |
with: | |
branch: gh-pages | |
folder: ./_build | |
token: ${{ secrets.TK_GITHUB_TOKEN }} | |
single-commit: true | |
clean: true | |
clean-exclude: CNAME |