Skip to content

Commit

Permalink
Add workflow_run trigger to main job (that deploys to gh-pages)
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke committed Apr 2, 2024
1 parent bfa6e29 commit a1c142d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ on:
branches: [main]
release:
types: [published]

workflow_run:
workflows: [Update py-shiny submodule]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -66,7 +69,6 @@ jobs:
# path: playwright-report/
# retention-days: 30


# =====================================================
# Publish to AWS for shinylive.io
# =====================================================
Expand All @@ -90,7 +92,6 @@ jobs:
aws s3 sync _shinylive s3://shinylive.io --delete
aws cloudfront create-invalidation --distribution-id $AWS_CLOUDFRONT_DISTRIBUTION_ID --paths "/*"
# =====================================================
# Upload _shinylive/ artifact
# =====================================================
Expand All @@ -100,7 +101,6 @@ jobs:
with:
path: "_shinylive/"


# =====================================================
# Publish to shinylive.io
# =====================================================
Expand All @@ -119,7 +119,6 @@ jobs:
# deployment.
command: pages publish _shinylive/ --project-name=shinylive --commit-dirty=true --branch=main


# =====================================================
# Upload shinylive bundle on release
# =====================================================
Expand Down Expand Up @@ -148,7 +147,6 @@ jobs:
file_glob: true
overwrite: true


# =====================================================
# Deploy GitHub Pages site
# =====================================================
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_shiny.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pull latest py-shiny submodule
name: Update py-shiny submodule

on:
workflow_dispatch:
Expand Down

0 comments on commit a1c142d

Please sign in to comment.