From cfb5474dba5d8ecd85fb4a7e9555a15445a881b7 Mon Sep 17 00:00:00 2001 From: Ace Date: Mon, 24 Jul 2023 00:07:08 +0200 Subject: [PATCH] Update tests.yml --- .github/workflows/tests.yml | 41 +++++++++++-------------------------- 1 file changed, 12 insertions(+), 29 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7011269..37ee6fa 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -105,11 +105,13 @@ jobs: tag_name: ${{ env.version }} files: inkycal_os.img.xz - generate-docs: - name: Generate Docs + generate-and-publish-docs: + name: Generate and publish docs needs: clone-setup-install runs-on: ubuntu-latest - + permissions: + contents: write + steps: - name: Restore Workspace uses: actions/download-artifact@v2 @@ -126,36 +128,17 @@ jobs: source venv/bin/activate pip install sphinxemoji sphinx_rtd_theme recommonmark cd docsource - make html - - publish-docs: - name: Publish Docs - needs: generate-docs - runs-on: ubuntu-latest - permissions: - contents: write - - steps: - - name: Restore Workspace - uses: actions/download-artifact@v2 - with: - name: workspace - - - name: Extract Workspace Archive - run: | - tar -xzf workspace.tar.gz - - - name: Publish Docs to Github Pages - run: | - echo "$PWD" - ls - source venv/bin/activate - cd docsource && make html && make github && cd .. + make html && make github && cd .. echo "$PWD" ls + + - name: Publish Docs + run: | + sudo apt-get install python3-sphinx git config --global user.name 'GitHub Actions' git config --global user.email 'actions@github.com' git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY git add docs - git commit -m "Update documentation" + git commit -m "github actions - updated docs" git push --force --quiet +