Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jolevesq authored Sep 28, 2022
1 parent de07194 commit a6b2403
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,27 @@ jobs:
exit 1
fi
- name: Develop build for demo files
uses: ./.github/workflows/build.yml
with:
cache_sha: ${{ github.event.pull_request.head.sha || github.sha }}
install-build:
name: Develop build for demo files
needs: [check-member]
uses: ./.github/workflows/build.yml
with:
cache_sha: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Deploy the files for PR
if: github.event.pull_request.merged == false
uses: ./.github/workflows/deploy.yml
with:
cache_sha: ${{ github.event.pull_request.head.sha || github.sha }}
folder: ${{github.head_ref}}
deploy-pr-pages:
name: Deploy the files for PR
needs: [install-build]
if: github.event.pull_request.merged == false
uses: ./.github/workflows/deploy.yml
with:
cache_sha: ${{ github.event.pull_request.head.sha || github.sha }}
folder: ${{github.head_ref}}

- name: Deploy the files on public demo
if: github.event.pull_request.merged == true
uses: ./.github/workflows/deploy.yml
with:
cache_sha: ${{ github.event.pull_request.head.sha || github.sha }}
folder: public
deploy-demo-pages:
name: Deploy the files on public demo
needs: [install-build]
if: github.event.pull_request.merged == true
uses: ./.github/workflows/deploy.yml
with:
cache_sha: ${{ github.event.pull_request.head.sha || github.sha }}
folder: public

0 comments on commit a6b2403

Please sign in to comment.