Skip to content

Merge pull request #956 from carpentries/feb2024-governance-updates #675

Merge pull request #956 from carpentries/feb2024-governance-updates

Merge pull request #956 from carpentries/feb2024-governance-updates #675

Workflow file for this run

name: check, build, deploy docs.carpentries.org
on:
push:
branches: main
pull_request:
jobs:
build-deploy-docs:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build site
run: |
make html
- name: Deploy
uses: jakejarvis/s3-sync-action@master
if: github.ref == 'refs/heads/main'
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: 'docs.carpentries.org'
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SOURCE_DIR: '_build/html'