Skip to content

Commit

Permalink
Run build test in CI on any branch or PR
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjaeger committed Mar 26, 2024
1 parent a31402f commit a827f86
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/vuepress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# https://kaizendorks.github.io/2020/04/16/vuepress-github-actions/

name: Deploy VuePress static site to GitHub pages
on:
push:
branches: [ main ]

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -30,6 +30,7 @@ jobs:
git commit -m 'deploy'
- name: Force push to destination branch
if: github.ref == 'refs/heads/main'
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit a827f86

Please sign in to comment.