Merge pull request #378 from acharraggi/fix_more_links #152
This file contains hidden or 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: "Booklets Builder" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| build-booklets: | |
| runs-on: ubuntu-22.04 | |
| if: github.repository == 'FIRST-Tech-Challenge/ftcdocs' | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v3 | |
| - name: Refresh Packages | |
| run: sudo apt-fast -y update | |
| - name: Install Dependencies | |
| run: xargs -a dependencies sudo apt-fast install -y | |
| - name: Python Setup | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.9 | |
| cache: 'pip' | |
| - name: Python Install Dependencies | |
| run: pip install -r docs/requirements.txt | |
| - name: Build Booklets | |
| env: | |
| SPHINXOPTS: "-D html_context.commit=${{ github.sha }} -D version=latest -A display_github=true -A github_user=${{ github.repository_owner }} -A github_repo=${{ github.event.repository.name }} -A github_version=${{ github.ref_name }} -A conf_py_path=/docs/source/" | |
| run: make -C docs/ booklets | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@v2 | |
| with: | |
| role-to-assume: arn:aws:iam::549273919012:role/gh-actions/ftc-docs-uploader | |
| aws-region: us-west-2 | |
| - name: Upload Booklets to S3 | |
| run: | | |
| aws s3 sync docs/build/booklets s3://ftc-docs-cdn/booklets/en --delete |