Skip to content

Commit

Permalink
added test build
Browse files Browse the repository at this point in the history
Signed-off-by: Melvin Strobl <lc3267@kit.edu>
  • Loading branch information
Melvin Strobl committed Sep 26, 2024
1 parent c26b258 commit 314c30c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
# workflows: ['Testing']
# types: [completed]
# branches: ["cx", "main"]
pull_request:
branches: [ "main" ]
workflow_call:
inputs:
test-run-id:
Expand All @@ -13,8 +15,33 @@ on:
permissions:
contents: write
jobs:
test-deploy:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'poetry'
- name: Install dependencies
run: poetry install --with docs
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- name: Setting up Cache
uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .ci-cache
restore-keys: |
mkdocs-material-
- name: Build Docs
run: poetry run mkdocs build
deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
Expand Down

0 comments on commit 314c30c

Please sign in to comment.