Skip to content

Commit

Permalink
fix(workflows): update docs workflow syntax (#2054)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Jun 23, 2021
1 parent f729b5e commit dee71ad
Show file tree
Hide file tree
Showing 15 changed files with 47 additions and 42 deletions.
4 changes: 2 additions & 2 deletions .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).
4 changes: 2 additions & 2 deletions .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.
4 changes: 2 additions & 2 deletions .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.
4 changes: 2 additions & 2 deletions .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.
4 changes: 2 additions & 2 deletions .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.
4 changes: 2 additions & 2 deletions .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(...)`.
Expand Down
4 changes: 2 additions & 2 deletions .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.
4 changes: 2 additions & 2 deletions .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.
4 changes: 2 additions & 2 deletions .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.
4 changes: 2 additions & 2 deletions .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.
4 changes: 2 additions & 2 deletions .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.
2 changes: 1 addition & 1 deletion .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`.
4 changes: 2 additions & 2 deletions .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.
21 changes: 12 additions & 9 deletions .github/workflows/covector-version-or-publish.yml
Expand Up @@ -109,22 +109,26 @@ 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
working-directory: ./tauri-docs
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
Expand All @@ -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
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/update-docs.yml
Expand Up @@ -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
Expand All @@ -111,15 +113,15 @@ 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
with:
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
Expand Down

0 comments on commit dee71ad

Please sign in to comment.