Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
make a test action that just looks tries to build the site without deploying
  • Loading branch information
pahjbo committed Jun 24, 2024
1 parent 329cc5b commit 41996b8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: site
name: site deploy
on:
push:
branches:
Expand All @@ -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
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 41996b8

Please sign in to comment.