Skip to content

Commit

Permalink
Update publish-web workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cowuake committed Apr 21, 2024
1 parent 356dd63 commit 928f96e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish-web.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Publish Web Page

on:
push:
workflow_run:
workflows:
- CI
types:
- completed
branches:
- main
paths:
- .github/workflows/**
- schemius/**
- schemius-web/**

env:
WORK_DIR: ./schemius-web
Expand All @@ -21,6 +21,7 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}

steps:
- name: Checkout
Expand Down Expand Up @@ -54,7 +55,7 @@ jobs:
name: Deploy
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
if: ${{ github.event.workflow_run.conclusion == 'success' }}

steps:
- name: Download artifacts
Expand Down

0 comments on commit 928f96e

Please sign in to comment.