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:
parent
ce67185729
commit
8651832926
6
.github/workflows/website.yml
vendored
6
.github/workflows/website.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user