Skip to content

Commit

Permalink
Merge pull request #227 from DurhamAcademy/docs
Browse files Browse the repository at this point in the history
docs test
  • Loading branch information
Ryan-Bauroth authored Nov 23, 2024
2 parents 97d3f1e + 88f0fb9 commit 27094dc
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Build documentation
name: Build and Deploy Documentation

on:
push:
branches: ["production", "testing", "code-cleanup"]
branches:
- production
- testing
- code-cleanup
workflow_dispatch:

env:
Expand Down Expand Up @@ -34,17 +37,10 @@ jobs:
artifacts/${{ env.ARTIFACT }}
artifacts/report.json
retention-days: 7
test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: docs
path: artifacts

- name: Test documentation
uses: JetBrains/writerside-checker-action@v1
- name: Deploy to GitHub Pages
if: ${{ github.ref_name == 'production' }} # Deploy only from the production branch
uses: peaceiris/actions-gh-pages@v3
with:
instance: ${{ env.INSTANCE }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: artifacts # Change this to the directory containing built files

0 comments on commit 27094dc

Please sign in to comment.