Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jolevesq authored Nov 16, 2022
1 parent 7020e02 commit 1cf3e17
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
branches:
- 'develop'

# Allow one concurrent deployment
concurrency:
group: 'pages'
cancel-in-progress: true

jobs:
check-member:
name: Check if we continue the process
Expand Down Expand Up @@ -41,14 +46,14 @@ jobs:
fi
install-build:
name: Build for demo files
name: Build demo files
needs: [check-member]
uses: ./.github/workflows/build.yml
with:
cache_sha: ${{ github.event.pull_request.head.sha || github.sha }}

deploy-pr:
name: Deploy pr gh-pages
name: Deploy pr
needs: [install-build]
if: github.event.pull_request.merged == false && ${{github.head_ref}} != ''
uses: ./.github/workflows/deploy.yml
Expand All @@ -57,7 +62,7 @@ jobs:
folder: ${{github.head_ref}}

deploy-public:
name: Deploy public gh-pages
name: Deploy public
needs: [install-build]
if: github.event.pull_request.merged == true
uses: ./.github/workflows/deploy.yml
Expand Down

0 comments on commit 1cf3e17

Please sign in to comment.