Added LICENSE for OPENSSF Compilance #180
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: read-all | |
jobs: | |
build: | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install dependencies | |
run: | | |
export PATH="$HOME/.local/bin:$PATH" | |
sudo apt-get install -y python3-setuptools pandoc | |
pip3 install --user -r requirements.txt | |
- name: Build the docs | |
run: | | |
export PATH="$HOME/.local/bin:$PATH" | |
make html | |
touch _build/html/.nojekyll | |
mv _build/html $HOME/output | |
- name: Deploy the docs | |
run: | | |
cd $HOME/output | |
git init | |
git config --global user.name "${GITHUB_ACTOR}" | |
git config --global user.email "${GITHUB_ACTOR}@github.com" | |
git add . | |
git commit -m "latest html output" | |
git push -f https://${GITHUB_ACTOR}:${{secrets.ACCESS_TOKEN}}@github.com/${GITHUB_REPOSITORY}.git HEAD:latestHTML |