This repository has been archived by the owner on Dec 6, 2024. It is now read-only.
Update cancellations_and_makeups.md #723
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
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' |