Merge pull request #7 from joenio/proposal-add-rsd-directory-links #22
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
on: | |
push: | |
branches: [main] | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
name: Build current | |
runs-on: ubuntu-latest | |
container: python:3 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: 'main' | |
- name: Install pre-requisites | |
run: pip install -r requirements.txt | |
- name: Build | |
run: mkdocs build -v --clean | |
- name: Upload | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: ./site | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |