Skip to content

Commit 3e40ff5

Browse files
authored
Merge pull request #13 from certik/ci
CI: Run for PRs as well
2 parents 0e7d6b7 + 2998aed commit 3e40ff5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ name: CI
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches:
6+
- main
7+
tags:
8+
- 'v*'
9+
pull_request:
10+
branches:
11+
- main
612

713
jobs:
814
build:
@@ -57,7 +63,8 @@ jobs:
5763
run: |
5864
git add .
5965
COMMIT_MESSAGE="Deploying on $(date "+%Y-%m-%d %H:%M:%S")"
60-
git commit -m "${COMMIT_MESSAGE}"
66+
git commit --allow-empty -m "${COMMIT_MESSAGE}"
6167
6268
- name: GIT Deploy
69+
if: ${{ github.ref != 'refs/heads/main' && github.event.pull_request.head.repo.full_name == 'lpython/lpython.org-deploy' }}
6370
run: git push origin gh-pages

0 commit comments

Comments
 (0)