Skip to content

Commit

Permalink
Run deploy step only on tagged versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Jul 11, 2023
1 parent 53da538 commit b5765a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Deploy to github pages
name: CI

on:
pull_request:
push:
branches:
- master
tags:
- 'v*.*.*'

jobs:
deploy:
Expand All @@ -25,6 +28,7 @@ jobs:

- name: Deploy
uses: JamesIves/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
branch: gh-pages
folder: build
Expand Down

0 comments on commit b5765a2

Please sign in to comment.