deploy openapi spec only when tagged (#1106)

This commit is contained in:
Marcin Czenko 2025-02-11 16:16:45 +01:00 committed by GitHub
parent 8880ad9cd4
commit 11888e78d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,17 +2,17 @@ name: OpenAPI
on:
push:
branches:
- 'master'
tags:
- "v*.*.*"
paths:
- 'openapi.yaml'
- '.github/workflows/docs.yml'
- "openapi.yaml"
- ".github/workflows/docs.yml"
pull_request:
branches:
- '**'
- "**"
paths:
- 'openapi.yaml'
- '.github/workflows/docs.yml'
- "openapi.yaml"
- ".github/workflows/docs.yml"
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
@ -40,7 +40,7 @@ jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v4