Skip to content

Commit

Permalink
Merge pull request #106 from ocefpaf/fix_docs_publication
Browse files Browse the repository at this point in the history
Run every PR but publish only when tags
  • Loading branch information
ocefpaf authored Sep 13, 2022
2 parents 55754ac + 724fa66 commit 2f625a1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Build and Deploy docs

on:
pull_request:
push:
branches: [main]
on: ["push", "pull_request"]

jobs:
run:
Expand Down Expand Up @@ -35,7 +32,7 @@ jobs:
popd
- name: GitHub Pages action
if: github.ref == 'refs/heads/main'
if: ${{ github.event_name == 'release' }}
uses: peaceiris/actions-gh-pages@v3.6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 2f625a1

Please sign in to comment.