|
12 | 12 | type: string
|
13 | 13 |
|
14 | 14 | jobs:
|
15 |
| - publish: |
| 15 | + publish_obsidian_plugin: |
| 16 | + name: Publish Obsidian Plugin |
| 17 | + runs-on: ubuntu-latest |
| 18 | + defaults: |
| 19 | + run: |
| 20 | + shell: bash |
| 21 | + working-directory: src/interface/obsidian |
| 22 | + steps: |
| 23 | + - uses: actions/checkout@v3 |
| 24 | + |
| 25 | + - name: Install Node |
| 26 | + uses: actions/setup-node@v3 |
| 27 | + with: |
| 28 | + node-version: "lts/*" |
| 29 | + |
| 30 | + - name: Build Obsidian Plugin |
| 31 | + run: | |
| 32 | + yarn |
| 33 | + yarn run build --if-present |
| 34 | +
|
| 35 | + - name: Upload Obsidian Plugin main.js |
| 36 | + uses: actions/upload-artifact@v3 |
| 37 | + with: |
| 38 | + if-no-files-found: error |
| 39 | + name: main.js |
| 40 | + path: src/interface/obsidian/main.js |
| 41 | + |
| 42 | + - name: Upload Obsidian Plugin manifest.json |
| 43 | + uses: actions/upload-artifact@v3 |
| 44 | + with: |
| 45 | + if-no-files-found: error |
| 46 | + name: manifest.json |
| 47 | + path: src/interface/obsidian/manifest.json |
| 48 | + |
| 49 | + - name: Create Release |
| 50 | + uses: softprops/action-gh-release@v1 |
| 51 | + if: startsWith(github.ref, 'refs/tags/') |
| 52 | + with: |
| 53 | + generate_release_notes: true |
| 54 | + files: | |
| 55 | + src/interface/obsidian/main.js |
| 56 | + src/interface/obsidian/manifest.json |
| 57 | +
|
| 58 | + publish_desktop_apps: |
| 59 | + name: Publish Desktop Apps |
16 | 60 | strategy:
|
17 | 61 | matrix:
|
18 | 62 | include:
|
@@ -114,4 +158,5 @@ jobs:
|
114 | 158 | uses: softprops/action-gh-release@v1
|
115 | 159 | if: startsWith(github.ref, 'refs/tags/')
|
116 | 160 | with:
|
| 161 | + generate_release_notes: true |
117 | 162 | files: dist/khoj_${{github.ref_name}}_amd64.${{matrix.extension}}
|
0 commit comments