From 288727f09a1b3458c268497d111349e608c3f9fa Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Tue, 2 Aug 2022 01:20:12 +0200 Subject: init --- .github/workflows/docs.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/docs.yaml (limited to '.github/workflows') diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml new file mode 100644 index 0000000..35aa304 --- /dev/null +++ b/.github/workflows/docs.yaml @@ -0,0 +1,32 @@ +name: docs +on: + push: + branches: + - master +jobs: + docs: + runs-on: ubuntu-latest + steps: + - name: checkout repository + uses: actions/checkout@v2 + - name: install python + uses: actions/setup-python@v1 + with: + python-version: "3.10" + - name: install requirements.pip.dev.txt + run: | + python -m pip install --upgrade pip + pip install sphinx furo + - name: build docs + run: ./build-docs.sh + - name: create CNAME + if: github.repository == 'bozokopic/lisp16' + run: | + echo "lisp16.kopic.xyz" > build/docs/CNAME + - name: deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build/docs + publish_branch: gh-pages + force_orphan: true -- cgit v1.2.3-70-g09d2