Skip to content

Commit

Permalink
Fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
antarcticrainforest committed Mar 20, 2024
1 parent 6506a21 commit 94afd71
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
35 changes: 0 additions & 35 deletions .github/workflows/ci_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 94afd71

Please sign in to comment.