This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
SG-33228 offline desktop usage info #598
Workflow file for this run
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: Generate Preview | |
on: [pull_request] | |
jobs: | |
Generate-Preview: | |
runs-on: ubuntu-latest | |
environment: docs-build | |
steps: | |
- name: Checkout repo and submodules | |
uses: actions/checkout@v2 | |
with: | |
# we need to checkout tk-doc-generator submodule as well. | |
submodules: 'true' | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.6 | |
- name: Install Pandoc | |
run: sudo apt-get install -y pandoc | |
- name: Bundle config | |
run: bundle config set --local deployment 'true' | |
- name: Install Jekyll dependencies | |
run: bundle install --gemfile=./tk-doc-generator/Gemfile | |
- name: Install tk-doc-generator requirements | |
run: pip install -r ./tk-doc-generator/requirements.txt | |
- name: Generate and publish preview | |
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: | |
PR_NUMBER: ${{ github.event.number }} | |
run: python ./tk-doc-generator/actions-generate-docs.py |