generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 39
57 lines (55 loc) · 2.04 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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:
echo:
runs-on: ubuntu-latest
steps:
- name: echo
run: |
echo EVENT NAME = ${{ github.event_name }}
echo BETA = ${{ inputs.beta || false}}
echo BUMP = ${{ inputs.bump || false}}
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
needs: echo
with:
PLUGIN_NAME: "obsidian-mkdocs-publisher"
SUBMODULE: true
CACHE: "pnpm"
discord_webhook_avatar: "https://avatars.githubusercontent.com/u/107352364?s=400&u=f2eb1406068b95a58baecdf987ccccde7fcbdd55&v=4"
discord_webhook_name: "Enveloppe"
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
bump-version-and-release:
if: ${{ inputs.bump }}
needs: echo
uses: mara-li/reusable-workflows/.github/workflows/obsidian-plugin-bump-version.yaml@main
with:
PLUGIN_NAME: "obsidian-mkdocs-publisher"
BETA: ${{ inputs.beta }}
SUBMODULE: true
CACHE: "pnpm"
discord_webhook_avatar: "https://avatars.githubusercontent.com/u/107352364?s=400&u=f2eb1406068b95a58baecdf987ccccde7fcbdd55&v=4"
discord_webhook_name: "Enveloppe"
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}