[gha] Remove matrix config for doc #2
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 | |
jobs: | |
doc: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@master | |
- name: install racket | |
uses: Bogdanp/[email protected] | |
with: | |
architecture: 'x64' | |
distribution: 'full' | |
version: 'stable' | |
- name: install packages | |
run: raco pkg install --batch --auto ./raco-run{,-cmd} | |
- name: build documentation | |
run: | | |
scribble +m --redirect-main http://pkg-build.racket-lang.org/doc/ \ | |
--dest ./doc --dest-name index ./raco-run/scribblings/raco-run.scrbl | |
- name: deploy documentation | |
run: | | |
cd doc | |
git init -b gh-pages | |
git config user.name 'GHA' | |
git config user.email [email protected] | |
git add . | |
git commit -m 'Deploy to GitHub Pages' | |
git push --force 'https://samdphillips:${{ github.token }}@github.com/${{ github.repository }}' gh-pages |