mara-li_obsidian-my-thesaurus/.github/workflows/ci.yaml
2024-12-17 16:24:45 +01:00

41 lines
1.2 KiB
YAML

name: Release obsidian plugin
on:
workflow_dispatch:
inputs:
bump:
default: false
description: "Bump version based on semantic release"
type: boolean
required: false
beta:
default: false
description: "Make a beta release"
type: boolean
required: false
push:
tags:
- "*"
permissions:
contents: write
jobs:
release:
if: (github.event_name == 'push') || (github.event_name == 'workflow_dispatch' && !inputs.bump)
uses: mara-li/reusable-workflows/.github/workflows/obsidian-plugin-release.yaml@main
with:
PLUGIN_NAME: <%= data.id %>
CACHE: "<%= data.packageManager %>"
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
bump-version-and-release:
if: ${{ inputs.bump }}
uses: mara-li/reusable-workflows/.github/workflows/obsidian-plugin-bump-version.yaml@main
with:
PLUGIN_NAME: <%= data.id %>
BETA: ${{ inputs.beta }}
CACHE: "<%= data.packageManager %>"
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}