Skip to content

Commit

Permalink
build(docs): only publish on new version tags (#1562)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj authored Aug 20, 2023
1 parent 18deb39 commit eb3d9b8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish-book.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Deploy book
on:
push:
paths: ['docs/book/**']
branches:
- main
tags:
- '*-?v[0-9]+*'

jobs:
deploy:
Expand Down Expand Up @@ -34,4 +33,4 @@ jobs:
mv ../book/* .
git add .
git commit -m "Deploy book $GITHUB_SHA to gh-pages"
git push --force --set-upstream origin gh-pages
git push --force --set-upstream origin gh-pages

0 comments on commit eb3d9b8

Please sign in to comment.