Skip to content

Commit 6f39110

Browse files
committed
ci: Change in workflow to run deploy after tests
1 parent 59af862 commit 6f39110

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
# Simple workflow for deploying static content to GitHub Pages
21
name: Deploy static content to Pages
32

43
on:
5-
# Runs on pushes targeting the default branch
64
push:
75
branches: ['main']
8-
6+
workflow_run:
7+
workflows: ['Execute Tests']
8+
types:
9+
- completed
910
# Allows you to run this workflow manually from the Actions tab
1011
workflow_dispatch:
1112

@@ -21,8 +22,8 @@ concurrency:
2122
cancel-in-progress: true
2223

2324
jobs:
24-
# Single deploy job since we're just deploying
2525
deploy:
26+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
2627
environment:
2728
name: github-pages
2829
url: ${{ steps.deployment.outputs.page_url }}
@@ -44,7 +45,6 @@ jobs:
4445
- name: Upload artifact
4546
uses: actions/upload-pages-artifact@v3
4647
with:
47-
# Upload dist repository
4848
path: './dist'
4949
- name: Deploy to GitHub Pages
5050
id: deployment

0 commit comments

Comments
 (0)