Skip to content

Commit 82b6574

Browse files
committed
[ re-fix #399 ] CI: deploy on master only
1 parent 16ae2bd commit 82b6574

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,25 +58,25 @@ jobs:
5858
run: make test
5959

6060
- name: Generate Prelude HTML
61-
if: ${{ (matrix.ghc == matrix.deploy-ghc) && (github.event_name != 'pull_request') }}
61+
if: ${{ (matrix.ghc == matrix.deploy-ghc) && (github.ref == 'refs/heads/master') }}
6262
run: make libHtml
6363

6464
- name: Deploy Prelude HTML
65-
if: ${{ (matrix.ghc == matrix.deploy-ghc) && (github.event_name != 'pull_request') }}
65+
if: ${{ (matrix.ghc == matrix.deploy-ghc) && (github.ref == 'refs/heads/master') }}
6666
uses: peaceiris/actions-gh-pages@v3
6767
with:
6868
github_token: ${{ secrets.GITHUB_TOKEN }}
6969
publish_dir: html
7070
destination_dir: lib
7171

7272
- name: Generate test-suite HTML
73-
if: ${{ (matrix.ghc == matrix.deploy-ghc) && (github.event_name != 'pull_request') }}
73+
if: ${{ (matrix.ghc == matrix.deploy-ghc) && (github.ref == 'refs/heads/master') }}
7474
run: |
7575
sudo apt-get install -y pandoc zsh
7676
make testHtml
7777
7878
- name: Deploy test-suite HTML
79-
if: ${{ (matrix.ghc == matrix.deploy-ghc) && (github.event_name != 'pull_request') }}
79+
if: ${{ (matrix.ghc == matrix.deploy-ghc) && (github.ref == 'refs/heads/master') }}
8080
uses: peaceiris/actions-gh-pages@v3
8181
with:
8282
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)