AIP-193: Address review comments #355
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: publish | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
jobs: | |
github-pages: | |
runs-on: ubuntu-latest | |
container: python:3.8 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install system dependencies. | |
run: apt-get update && apt-get install -y rsync | |
- name: Install the site generator. | |
run: pip install -r requirements.txt | |
- name: Build the static site. | |
run: aip-site-gen . out | |
- name: Publish the static site to GitHub Pages. | |
uses: jamesives/github-pages-deploy-action@v4 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: out |