dont setup github pages if pull request
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
19f313b91d
commit
ea6425712a
1 changed files with 3 additions and 0 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -47,6 +47,7 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup GitHub Pages
|
- name: Setup GitHub Pages
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
uses: actions/configure-pages@v4
|
uses: actions/configure-pages@v4
|
||||||
|
|
||||||
- name: Install Nix (with flakes and nix-command enabled)
|
- name: Install Nix (with flakes and nix-command enabled)
|
||||||
|
@ -191,11 +192,13 @@ jobs:
|
||||||
compression-level: 0
|
compression-level: 0
|
||||||
|
|
||||||
- name: Upload generated documentation (book) as GitHub Pages artifact
|
- name: Upload generated documentation (book) as GitHub Pages artifact
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: public
|
path: public
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v4
|
uses: actions/deploy-pages@v4
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue