mirror of
https://github.com/mara-li/obsidian-my-thesaurus.git
synced 2026-07-22 05:38:22 +00:00
41 lines
1.2 KiB
YAML
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 }}
|