Skip to content

Commit a767084

Browse files
committed
Build page on all branches including PRs, deploy only on main branch
1 parent 8705084 commit a767084

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Deploy
22

33
on:
44
push:
5+
pull_request:
56
workflow_dispatch:
67

78
jobs:
@@ -16,4 +17,6 @@ jobs:
1617
- run: mkdir ~/.ssh && echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_rsa && chmod 400 ~/.ssh/id_rsa
1718
- run: echo 'GITHUB_TOKEN="${{ secrets.GITHUB_TOKEN }}"' > .env && cat .env.dist >> .env
1819
- run: git config --global user.name "GitHub Actions" && git config --global user.email "[email protected]"
19-
- run: bin/build --deploy
20+
- run: bin/build
21+
- run: bin/build --deploy --no-component-update
22+
if: ${{ github.ref == 'refs/heads/main' }}

0 commit comments

Comments
 (0)