Skip to content

Only run release pipeline on new tag to main #21

Only run release pipeline on new tag to main

Only run release pipeline on new tag to main #21

on:
push:
branches: main
pull_request:
branches: main
workflow_dispatch:
workflow_call:
name: Release Package 🚀
jobs:
build:
name: RMD Build and check
uses: ./.github/workflows/R-CMD-check.yaml
docs:
needs: build
name: Build and Deploy Docs
uses: ./.github/workflows/pkgdown.yaml
release:
needs: [build, docs]
name: Release
if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v')
uses: ./.github/workflows/release.yaml