save progress #62
Workflow file for this run
This file contains hidden or 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: "Deploy documentation" | |
on: | |
push: | |
branches: [main, auth-documentation] | |
jobs: | |
deploy_documentation: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build Slate documentation | |
run: | | |
mkdir -p ${{ github.workspace }}/build | |
docker run --rm \ | |
--user $(id -u):$(id -g) \ | |
--name slate \ | |
-v ${{ github.workspace }}/build:/srv/slate/build \ | |
-v ${{ github.workspace }}/documentation:/srv/slate/source \ | |
slatedocs/slate build | |
- name: Copy additional webpages | |
run: | | |
cp ${{ github.workspace }}/documentation/pages/* build | |
- name: Deploy documentation to Github Pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages | |
folder: build | |
clean: true |