From 41996b877bfac42cd0da7f1576a04f93faa1971d Mon Sep 17 00:00:00 2001 From: Paul Harrison Date: Mon, 24 Jun 2024 16:07:03 +0100 Subject: [PATCH] update actions make a test action that just looks tries to build the site without deploying --- .github/workflows/site.yml | 10 ++-------- .github/workflows/test.yml | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/site.yml b/.github/workflows/site.yml index 79c39ca..1f59b60 100644 --- a/.github/workflows/site.yml +++ b/.github/workflows/site.yml @@ -1,4 +1,4 @@ -name: site +name: site deploy on: push: branches: @@ -14,13 +14,7 @@ jobs: - uses: actions/setup-python@v5 with: python-version: 3.x - - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV - - uses: actions/cache@v4 - with: - key: mkdocs-material-${{ env.cache_id }} - path: .cache - restore-keys: | - mkdocs-material- + cache: 'pip' - run: pip install mkdocs-material plantuml-markdown - name: Deploy site run: mkdocs gh-deploy --force diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..1d42121 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,17 @@ +name: site test +on: + pull_request: +permissions: + contents: write +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 3.x + cache: 'pip' + - run: pip install mkdocs-material plantuml-markdown + - name: test site + run: mkdocs build