diff --git a/.github/workflows/build_job.yml b/.github/workflows/build_job.yml index 5093f2ef..74bf5518 100644 --- a/.github/workflows/build_job.yml +++ b/.github/workflows/build_job.yml @@ -10,6 +10,41 @@ run-name: ${{ github.actor }} is preparing the next release jobs: tests: uses: ./.github/workflows/ci_job.yml + docs: + runs-on: ubuntu-latest + needs: tests + permissions: + contents: write + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.11" + - name: Set up services + run: | + docker-compose -f dev-env/docker-compose.yaml up -d --remove-orphans + - name: Install dependencies + run: | + python3 -m pip install tox + - name: Creating docs + run: tox -e docs + - name: Setup Pages + uses: actions/configure-pages@v2 + - name: Upload artifact + uses: actions/upload-artifact@v2 + with: + # Upload entire repository + path: './docs/build/html' + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs/build/html + build-and-push-image: runs-on: ubuntu-latest needs: tests diff --git a/.github/workflows/ci_job.yml b/.github/workflows/ci_job.yml index 37dfc31c..09ef918e 100644 --- a/.github/workflows/ci_job.yml +++ b/.github/workflows/ci_job.yml @@ -33,41 +33,6 @@ jobs: verbose: true flags: unittests - - docs: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - submodules: recursive - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: "3.11" - - name: Set up services - run: | - docker-compose -f dev-env/docker-compose.yaml up -d --remove-orphans - - name: Install dependencies - run: | - python3 -m pip install tox - - name: Creating docs - run: tox -e docs - - name: Setup Pages - uses: actions/configure-pages@v2 - - name: Upload artifact - uses: actions/upload-artifact@v2 - with: - # Upload entire repository - path: './docs/build/html' - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs/build/html - build-docker-image: runs-on: ubuntu-latest permissions: