Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(workflows): update docs workflow syntax #2054

Merged
merged 7 commits into from
Jun 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .changes/clipboard-api.md
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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