From 3a50cbdf8566b3caa8760499ae21746ec9a5e535 Mon Sep 17 00:00:00 2001 From: Marvin Friede <51965259+marvinfriede@users.noreply.github.com> Date: Wed, 3 Jan 2024 09:43:16 +0100 Subject: [PATCH] Fix build workflow (#47) --- .github/workflows/docs.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 1b0f1bc7..a18eeb2d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -5,20 +5,30 @@ on: [push, pull_request] jobs: build-and-deploy: runs-on: ubuntu-latest + permissions: + contents: write + steps: - id: deploy-on-push run: echo "::set-output name=result::${{ env.DEPLOY_BRANCH }}" env: DEPLOY_BRANCH: ${{ secrets.DEPLOY_BRANCH && contains(github.ref, secrets.DEPLOY_BRANCH) && 1 || 0 }} - - uses: actions/checkout@v2 - - uses: actions/setup-python@v1 + + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 with: python-version: '3.x' + - name: Install dependencies run: pip install ford + - name: Build Documentation run: ford docs.md + - uses: JamesIves/github-pages-deploy-action@4.1.6 if: ${{ github.event_name == 'push' && steps.deploy-on-push.outputs.result != 0 }} with: