Skip to content

Commit

Permalink
Merge pull request #6 from Netherlands3D/feature/test-feature-builds
Browse files Browse the repository at this point in the history
Change workflow to generate a built site upon pushing to a branch
  • Loading branch information
mvriel authored Dec 5, 2024
2 parents fd687e3 + ae65a26 commit 0010c9a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: ci
on:
push:
branches:
- main
permissions:
contents: write
jobs:
Expand All @@ -21,5 +19,19 @@ jobs:
mkdocs-material-
- name: Install mkdocs with plugins
run: pip install mkdocs-material
# Only on feature branches
- name: build documentation
if: ${{ github.ref != 'refs/heads/main' }}
run: mkdocs build --clean
- name: Store build artefact
if: ${{ github.ref != 'refs/heads/main' }}
uses: actions/upload-artifact@v4
with:
retention-days: 3
name: site
path: |
site
# Only on main
- name: deploy documentation
if: ${{ github.ref == 'refs/heads/main' }}
run: mkdocs gh-deploy --clean --force
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
site

0 comments on commit 0010c9a

Please sign in to comment.