From 6c3ff23792b2573e7fc00d96cfab70fd70f24692 Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Tue, 4 Jun 2024 09:36:28 +0200 Subject: [PATCH] refactor(ci): cleanup documentation generation workflow We don't need a specific python version, we don't need to specify a clone folder or the branch, we don't need to overconfigure poetry ... --- .github/workflows/pages.yml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 903934b76..fb3db6044 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -18,28 +18,16 @@ permissions: jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.11"] steps: - uses: actions/checkout@v3 - with: - path: apis-core-rdf - ref: main - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} + - uses: actions/setup-python@v3 - name: Install documentation dependencies run: | - cd apis-core-rdf pip install poetry - poetry config virtualenvs.create false - poetry lock poetry install --with docs - name: Build docs - run: make -C "$GITHUB_WORKSPACE/apis-core-rdf/docs" html + run: poetry run make -C "$GITHUB_WORKSPACE/docs" html - uses: actions/checkout@v3 with: path: apis-core-rdf-pages @@ -48,8 +36,7 @@ jobs: run: | cd apis-core-rdf-pages git rm -rf * - ls $GITHUB_WORKSPACE/apis-core-rdf/docs/_build/html/ - cp -r $GITHUB_WORKSPACE/apis-core-rdf/docs/_build/html/* . + cp -r $GITHUB_WORKSPACE/docs/_build/html/* . touch .nojekyll git config user.name github-actions git config user.email github-actions@github.com