ci: only run website workflow for main branch
This commit is contained in:
parent
b18cc8c2e8
commit
b42ab29b59
|
@ -7,7 +7,6 @@ on:
|
||||||
- .github/workflows/website.yml
|
- .github/workflows/website.yml
|
||||||
- website/**
|
- website/**
|
||||||
- docs/**
|
- docs/**
|
||||||
pull_request:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
@ -34,7 +33,6 @@ jobs:
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./website/build
|
publish_dir: website/build
|
||||||
|
|
Loading…
Reference in New Issue