2022-08-14 00:53:37 +02:00
|
|
|
name: release
|
|
|
|
|
|
|
|
on:
|
2022-09-07 13:51:03 +02:00
|
|
|
push:
|
|
|
|
tags:
|
2023-01-05 00:27:56 +01:00
|
|
|
- "*"
|
2022-08-15 05:09:54 +02:00
|
|
|
workflow_dispatch:
|
2022-08-16 19:26:06 +02:00
|
|
|
inputs:
|
|
|
|
version:
|
|
|
|
description: 'Version Number'
|
|
|
|
required: true
|
|
|
|
type: string
|
2022-08-14 00:53:37 +02:00
|
|
|
|
|
|
|
jobs:
|
2023-02-18 01:14:46 +01:00
|
|
|
publish_obsidian_plugin:
|
2023-03-01 17:56:39 +01:00
|
|
|
name: 💎 Publish Obsidian Plugin
|
2023-02-18 01:14:46 +01:00
|
|
|
runs-on: ubuntu-latest
|
2023-07-01 15:23:45 +02:00
|
|
|
permissions:
|
|
|
|
contents: write
|
2023-02-18 01:14:46 +01:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
working-directory: src/interface/obsidian
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Install Node
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: "lts/*"
|
|
|
|
|
2023-03-01 17:56:39 +01:00
|
|
|
- name: ⚙️ Build Obsidian Plugin
|
2023-02-18 01:14:46 +01:00
|
|
|
run: |
|
|
|
|
yarn
|
|
|
|
yarn run build --if-present
|
|
|
|
|
2023-03-01 17:56:39 +01:00
|
|
|
- name: ⏫ Upload Obsidian Plugin main.js
|
2023-02-18 01:14:46 +01:00
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
if-no-files-found: error
|
|
|
|
name: main.js
|
|
|
|
path: src/interface/obsidian/main.js
|
|
|
|
|
2023-03-01 17:56:39 +01:00
|
|
|
- name: ⏫ Upload Obsidian Plugin manifest.json
|
2023-02-18 01:14:46 +01:00
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
if-no-files-found: error
|
|
|
|
name: manifest.json
|
|
|
|
path: src/interface/obsidian/manifest.json
|
|
|
|
|
2023-03-31 12:50:28 +02:00
|
|
|
- name: ⏫ Upload Obsidian Plugin styles.css
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
if-no-files-found: error
|
|
|
|
name: styles.css
|
|
|
|
path: src/interface/obsidian/styles.css
|
|
|
|
|
2023-03-01 17:56:39 +01:00
|
|
|
- name: 🌈 Create Release
|
2023-02-18 01:14:46 +01:00
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
|
|
with:
|
|
|
|
generate_release_notes: true
|
|
|
|
files: |
|
|
|
|
src/interface/obsidian/main.js
|
|
|
|
src/interface/obsidian/manifest.json
|
2023-03-31 12:50:28 +02:00
|
|
|
src/interface/obsidian/styles.css
|