Skip to content

Commit

Permalink
Merge pull request #474 from BradyAJohnston/fix-docs-build-pr
Browse files Browse the repository at this point in the history
Update docs.yml
  • Loading branch information
BradyAJohnston committed Apr 2, 2024
2 parents 41ecb84 + 2888ba3 commit 6e82364
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:

- name: Create Github Deployment
uses: bobheadxi/deployments@v0.4.3
if: github.event.pull_request.head.repo.full_name == github.repository
id: deployment
with:
step: start
Expand All @@ -60,6 +61,7 @@ jobs:
logs: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'

- name: Netlify docs preview
if: github.event.pull_request.head.repo.full_name == github.repository
run: |
npm install -g netlify-cli
# push main branch to production, others to preview --
Expand All @@ -74,16 +76,18 @@ jobs:
ALIAS: ${{ steps.deployment.outputs.env }}

- name: Update Github Deployment
if: github.event.pull_request.head.repo.full_name == github.repository
uses: bobheadxi/deployments@v0.4.3
if: ${{ always() }}
with:
step: finish
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
env_url: 'https://${{ steps.deployment.outputs.env }}--molecularnodes.netlify.app'
logs: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
- uses: peaceiris/actions-gh-pages@v3

- name: Deploy Release Documentation
uses: peaceiris/actions-gh-pages@v3
if: github.event_name == 'release'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 6e82364

Please sign in to comment.