Skip to content

Commit

Permalink
Build always, deploy only on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-grace committed Jan 29, 2025
1 parent 398cd68 commit b772c95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
release:
types: [created]
push:
branches:
- main
tags:
- '**'
jobs:
Expand All @@ -22,6 +24,7 @@ jobs:
path: ./docs/build

deploy:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
permissions:
pages: write
id-token: write
Expand Down

0 comments on commit b772c95

Please sign in to comment.