-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run build test in CI on any branch or PR
- Loading branch information
1 parent
a31402f
commit a827f86
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} | ||
|