Skip to content

Commit

Permalink
Make website update dependent upon successful test completion
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmassay authored Aug 12, 2024
1 parent 64ef817 commit 5433c86
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

#push:
workflow_run:
# Only run after test & build action completes
workflows: ["Test and Build Sigil Guide"]
types:
- completed
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
Expand All @@ -25,6 +25,8 @@ env:
PAGESURL: https://sigil-ebook.com/sigil-user-guide/index2.html?epub=epub_content/guide

jobs:
# Only update pages website if test build action completess successfully
if: ${{ github.event.workflow_run.conclusion == 'success' }}
# Single deploy job since we're just deploying
deploy:
environment:
Expand Down Expand Up @@ -65,4 +67,4 @@ jobs:
path: 'view2/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4

0 comments on commit 5433c86

Please sign in to comment.