Эх сурвалжийг харах

fix(workflows): update docs workflow syntax (#2054)

Lucas Fernandes Nogueira 4 жил өмнө
parent
commit
dee71ad583

+ 2 - 2
.changes/clipboard-api.md

@@ -1,8 +1,8 @@
 ---
 "api": patch
 "tauri": patch
-"tauri-runtime": patch
-"tauri-runtime-wry": patch
+"tauri-runtime": minor
+"tauri-runtime-wry": minor
 ---
 
 Adds `clipboard` APIs (write and read text).

+ 2 - 2
.changes/focus.md

@@ -1,7 +1,7 @@
 ---
 "tauri": patch
-"tauri-runtime": patch
-"tauri-runtime-wry": patch
+"tauri-runtime": minor
+"tauri-runtime-wry": minor
 ---
 
 Adds `focus` API to the WindowBuilder.

+ 2 - 2
.changes/is-decorated.md

@@ -1,7 +1,7 @@
 ---
 "tauri": patch
-"tauri-runtime": patch
-"tauri-runtime-wry": patch
+"tauri-runtime": minor
+"tauri-runtime-wry": minor
 ---
 
 Adds `is_decorated` getter on Window.

+ 2 - 2
.changes/is-resizable.md

@@ -1,7 +1,7 @@
 ---
 "tauri": patch
-"tauri-runtime": patch
-"tauri-runtime-wry": patch
+"tauri-runtime": minor
+"tauri-runtime-wry": minor
 ---
 
 Adds `is_resizable` getter on Window.

+ 2 - 2
.changes/is-visible.md

@@ -1,7 +1,7 @@
 ---
 "tauri": patch
-"tauri-runtime": patch
-"tauri-runtime-wry": patch
+"tauri-runtime": minor
+"tauri-runtime-wry": minor
 ---
 
 Adds `is_visible` getter on Window.

+ 2 - 2
.changes/private-context.md

@@ -1,7 +1,7 @@
 ---
 "tauri": patch
-"tauri-runtime": patch
-"tauri-runtime-wry": patch
+"tauri-runtime": minor
+"tauri-runtime-wry": minor
 ---
 
 **Breaking:** `Context` fields are now private, and is expected to be created through `Context::new(...)`.

+ 2 - 2
.changes/runtime-global-shortcut.md

@@ -1,6 +1,6 @@
 ---
-"tauri-runtime": patch
-"tauri-runtime-wry": patch
+"tauri-runtime": minor
+"tauri-runtime-wry": minor
 ---
 
 Adds global shortcut interfaces.

+ 2 - 2
.changes/runtime-request-user-attention.md

@@ -1,6 +1,6 @@
 ---
-"tauri-runtime": patch
-"tauri-runtime-wry": patch
+"tauri-runtime": minor
+"tauri-runtime-wry": minor
 ---
 
 Adds `request_user_attention` API to the `Dispatcher` trait.

+ 2 - 2
.changes/runtime-show-hide-menu.md

@@ -1,6 +1,6 @@
 ---
-"tauri-runtime": patch
-"tauri-runtime-wry": patch
+"tauri-runtime": minor
+"tauri-runtime-wry": minor
 ---
 
 Adds `show_menu`, `hide_menu` and `is_menu_visible` APIs to the `Dispatcher` trait.

+ 2 - 2
.changes/set-focus.md

@@ -1,7 +1,7 @@
 ---
 "tauri": patch
-"tauri-runtime": patch
-"tauri-runtime-wry": patch
+"tauri-runtime": minor
+"tauri-runtime-wry": minor
 ---
 
 Adds `set_focus` API on Window.

+ 2 - 2
.changes/set-skip-taskbar.md

@@ -1,7 +1,7 @@
 ---
 "tauri": patch
-"tauri-runtime": patch
-"tauri-runtime-wry": patch
+"tauri-runtime": minor
+"tauri-runtime-wry": minor
 ---
 
 Adds `set_skip_taskbar` API on Window.

+ 1 - 1
.changes/simplify-handle-event-loop.md

@@ -1,5 +1,5 @@
 ---
-"tauri-runtime-wry": patch
+"tauri-runtime-wry": minor
 ---
 
 Update `wry` to v0.10.0 and replace the removed `dispatch_script` and `evaluate_script` methods with the new `evaluate_script` method in `handle_event_loop`.

+ 2 - 2
.changes/skip-taskbar.md

@@ -1,7 +1,7 @@
 ---
 "tauri": patch
-"tauri-runtime": patch
-"tauri-runtime-wry": patch
+"tauri-runtime": minor
+"tauri-runtime-wry": minor
 ---
 
 Adds `skip_taskbar` API to the WindowBuilder.

+ 12 - 9
.github/workflows/covector-version-or-publish.yml

@@ -109,11 +109,11 @@ jobs:
       - name: meilisearch indexation
         uses: tauri-apps/docusaurus-meilisearch-indexer@v1
         with:
-          - version: ${{ github.event.release.tag_name }}
-          - docusaurusPath: ./tauri-docs
-          - host: https://search.tauri.studio
-          - apiKey: ${{ secrets.MEILISEARCH_APIKEY }}
-          - docs: "Getting started,Usage,API"
+          version: ${{ github.event.release.tag_name }}
+          docusaurusPath: ./tauri-docs
+          host: https://search.tauri.studio
+          apiKey: ${{ secrets.MEILISEARCH_APIKEY }}
+          docs: "Getting started,Usage,API"
 
       # Applying Version
       - name: set docs' Tauri version
@@ -121,10 +121,14 @@ jobs:
         run: echo ${{ github.event.release.tag_name }} > version.txt
       - name: set bot's Tauri version
         working-directory: ./tauri-search-bot
-        uses: iamsauravsharma/create-dotenv@v1.1.0
+        run: echo ${{ github.event.release.tag_name }} > version.txt
+
+      - uses: iamsauravsharma/create-dotenv@v1.1.0
+        with:
+          directory: './tauri-search-bot'
         env:
           ENV_KEY_DISCORD_BOT_SECRET: ${{ secrets.DISCORD_BOT_SECRET }}
-          ENV_KEY_PREFIX: !
+          ENV_KEY_PREFIX: \!
           ENV_KEY_SITE: tauri.studio
           ENV_KEY_ICON: https://i.imgur.com/UzDERvw.png
           ENV_KEY_LIMIT: 5
@@ -133,13 +137,12 @@ jobs:
 
       # Bot Deployment
       - name: scp bot
-        working-directory: ./tauri-search-bot
         uses: appleboy/scp-action@master
         with:
           host: ${{ secrets.DISCORD_BOT_HOST }}
           username: ${{ secrets.DISCORD_BOT_SSH_USER }}
           key: ${{ secrets.DISCORD_BOT_SSH_KEY }}
-          source: "."
+          source: "./tauri-search-bot"
           target: "~/tauri-search-bot"
       - name: restart the bot
         uses: appleboy/ssh-action@master

+ 10 - 8
.github/workflows/update-docs.yml

@@ -91,17 +91,19 @@ jobs:
         working-directory: ./tauri-docs
         run: echo ${{ github.event.inputs.version || github.event.release.tag_name }} > version.txt
       - name: set bot's Tauri version
-        uses: iamsauravsharma/create-dotenv@v1.1.0
+        working-directory: ./tauri-search-bot
+        run: echo ${{ github.event.inputs.version || github.event.release.tag_name }} > version.txt
+
+      - uses: iamsauravsharma/create-dotenv@v1.1.0
         with:
-          env-prefix: "ENV_KEY_"
-          directory: "${{ github.workspace }}/tauri-search-bot"
+          directory: './tauri-search-bot'
         env:
           ENV_KEY_DISCORD_BOT_SECRET: ${{ secrets.DISCORD_BOT_SECRET }}
-          ENV_KEY_PREFIX: "!"
+          ENV_KEY_PREFIX: \!
           ENV_KEY_SITE: tauri.studio
           ENV_KEY_ICON: https://i.imgur.com/UzDERvw.png
-          ENV_KEY_LIMIT: 8
-          ENV_KEY_SEARCH_INDEX: ${{ github.event.inputs.version || github.event.release.tag_name }}
+          ENV_KEY_LIMIT: 5
+          ENV_KEY_SEARCH_INDEX: ${{ github.event.release.tag_name }}
           ENV_KEY_MEILISEARCH_PUBLIC_KEY: ea0105f56bb5a2111ed28c7a0c637fc0bed07273f571dc7cb1f73900e44f8e7f
 
       # Bot Deployment
@@ -111,7 +113,7 @@ jobs:
           host: ${{ secrets.DISCORD_BOT_HOST }}
           username: ${{ secrets.DISCORD_BOT_SSH_USER }}
           key: ${{ secrets.DISCORD_BOT_SSH_KEY }}
-          source: "${{ github.workspace }}/tauri-search-bot"
+          source: "./tauri-search-bot"
           target: "~/tauri-search-bot"
       - name: restart the bot
         uses: appleboy/ssh-action@master
@@ -119,7 +121,7 @@ jobs:
           host: ${{ secrets.DISCORD_BOT_HOST }}
           username: ${{ secrets.DISCORD_BOT_SSH_USER }}
           key: ${{ secrets.DISCORD_BOT_SSH_KEY }}
-          script: cd ~/tauri-search-bot/github/workspace/tauri-search-bot && yarn && forever stopall && forever start ./src/index.js
+          script: cd ~/tauri-search-bot && yarn && forever stopall && forever start ./src/index.js
 
       # tauri-docs PR
       - name: git config