This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
SG-31320 Add SECURITY.md file #40
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: Install Jekyll dependencies | |
run: bundle install --deployment | |
- name: Install tk-doc-generator requirements | |
run: pip install -r ./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.ems.autodesk.com | |
DOC_URL: https://developer.shotgridsoftware.com | |
DOC_PATH: /tk-doc-generator | |
PR_NUMBER: ${{ github.event.number }} | |
run: python ./actions-generate-docs.py |