Skip to content

Commit

Permalink
Add docs deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Aug 24, 2023
1 parent 9568142 commit 30bfdb1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: CI tests

env:
GIT_USER_NAME: Matthew Cliffe
GIT_USER_EMAIL: "[email protected]"

on:
pull_request:
push:
Expand Down Expand Up @@ -56,6 +60,16 @@ jobs:
path: |
.
!venv/
!site/
!docs/
!tests/
- name: Upload docs artifact
uses: actions/upload-artifact@v3
with:
name: github-pages
path: |
./site/
deploy:
if: ${{github.repository == 'MJCliffe/PASCal' && github.event_name == 'push' }}
Expand All @@ -80,3 +94,19 @@ jobs:
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_TEST_WEBAPP_PUBLISH_PROFILE }}

deploy_docs:

if: ${{github.repository == 'MJCliffe/PASCal' && github.event_name == 'push' }}
runs-on: ubuntu-latest
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
needs: tests
environment:
name: "Latest documentation"
url: https://mjcliffe.github.io/PASCal

steps:
- name: Deploy docs
uses: actions/deploy-pages@v2

0 comments on commit 30bfdb1

Please sign in to comment.