1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-09-11 06:55:38 +03:00

chore(website): only deploy website when there is a new release

This commit is contained in:
Orhun Parmaksız 2024-03-27 17:22:06 +03:00
parent ce67185729
commit 8651832926
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90

View File

@ -4,6 +4,8 @@ on:
push:
branches:
- main
tags:
- "v*.*.*"
pull_request:
branches:
- main
@ -24,7 +26,7 @@ env:
jobs:
test-deploy:
name: Test deployment
if: github.event_name == 'pull_request'
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
runs-on: ubuntu-22.04
steps:
- name: Checkout
@ -44,7 +46,7 @@ jobs:
deploy:
name: Deploy website
if: github.event_name != 'pull_request'
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-22.04
environment:
name: github-pages