Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/CI-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ name: CI/CD

on:
push:
branches: [ "main" ]
branches:
- master
pull_request:
branches: [ "main" ]
types:
- opened
- edited
- synchronize
- reopened
- closed

permissions:
contents: read
Expand Down Expand Up @@ -54,6 +60,7 @@ jobs:

pages:
name: Deploy the test results to GitHub Pages
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.merged == true }}

needs:
- test
Expand All @@ -69,7 +76,7 @@ jobs:
- name: Download all page artifacts
uses: actions/download-artifact@v3
with:
path: './pages/${{ github.head_ref || github.ref_name }}'
path: './pages'
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
Expand Down