Merge branch 'main' into popup-search-results

This commit is contained in:
neil 2022-12-22 09:59:36 +08:00
commit 8047fc2ee3
7 changed files with 47 additions and 8 deletions

27
.github/notify-slack.js vendored Executable file
View file

@ -0,0 +1,27 @@
#!/usr/bin/env node
async function main() {
const message = {
blocks: [
{
type: 'section',
text: {
type: 'mrkdwn',
text: `NEW BUILD FOR ${process.env.PLATFORM} <${process.env.DOWNLOAD_URL}|download ${process.env.VERSION || ''}>`
}
}
]
}
const res = fetch(process.env.SLACK_WEBHOOK, {
method: 'POST',
body: JSON.stringify(message),
headers: { 'Content-Type': 'application/json' }
})
if (res.ok) {
const data = await res.json();
console.log(data);
}
}
main();

View file

@ -53,7 +53,7 @@ jobs:
- name: setup node - name: setup node
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: 16 node-version: 18
cache: 'pnpm' cache: 'pnpm'
cache-dependency-path: pnpm-lock.yaml cache-dependency-path: pnpm-lock.yaml
- name: install app dependencies - name: install app dependencies
@ -74,7 +74,7 @@ jobs:
- name: setup node - name: setup node
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: 16 node-version: 18
cache: 'pnpm' cache: 'pnpm'
cache-dependency-path: pnpm-lock.yaml cache-dependency-path: pnpm-lock.yaml
- name: install Rust stable - name: install Rust stable

View file

@ -41,7 +41,7 @@ jobs:
- name: setup node - name: setup node
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: 16 node-version: 18
cache: 'pnpm' cache: 'pnpm'
cache-dependency-path: pnpm-lock.yaml cache-dependency-path: pnpm-lock.yaml
- name: install Rust stable - name: install Rust stable
@ -73,7 +73,7 @@ jobs:
- name: setup node - name: setup node
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: 16 node-version: 18
cache: 'pnpm' cache: 'pnpm'
cache-dependency-path: pnpm-lock.yaml cache-dependency-path: pnpm-lock.yaml
- name: install Rust stable - name: install Rust stable
@ -126,4 +126,9 @@ jobs:
run: | run: |
aws s3 cp ./modules/gui/src-tauri/target/release/bundle/deb/tea_0.1.0_amd64.deb \ aws s3 cp ./modules/gui/src-tauri/target/release/bundle/deb/tea_0.1.0_amd64.deb \
s3://preview.gui.tea.xyz/release/tea_${{ steps.date.outputs.unix_seconds }}.deb s3://preview.gui.tea.xyz/release/tea_${{ steps.date.outputs.unix_seconds }}.deb
- name: Slack Notification
run: ./.github/notify-slack.js
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
PLATFORM: ${{ matrix.platform }}
DOWNLOAD_URL: http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com/release/tea_${{ steps.date.outputs.unix_seconds }}.${{ matrix.platform == 'ubuntu-latest' && 'deb' || 'dmg'}}

View file

@ -20,7 +20,7 @@ jobs:
- name: setup node - name: setup node
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: 16 node-version: 18
cache: 'pnpm' cache: 'pnpm'
cache-dependency-path: pnpm-lock.yaml cache-dependency-path: pnpm-lock.yaml
- name: install Rust stable - name: install Rust stable
@ -81,3 +81,10 @@ jobs:
s3://preview.gui.tea.xyz/release/tea_gui_latest.${{matrix.platform}}.dmg s3://preview.gui.tea.xyz/release/tea_gui_latest.${{matrix.platform}}.dmg
aws s3 cp ./modules/gui/src-tauri/target/release/bundle/dmg/tea_0.1.0_x64.dmg \ aws s3 cp ./modules/gui/src-tauri/target/release/bundle/dmg/tea_0.1.0_x64.dmg \
s3://preview.gui.tea.xyz/release/tea_gui_${{steps.tag.outputs.tag}}.${{matrix.platform}}.dmg s3://preview.gui.tea.xyz/release/tea_gui_${{steps.tag.outputs.tag}}.${{matrix.platform}}.dmg
- name: Slack Notification
run: ./.github/notify-slack.js
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
PLATFORM: ${{ matrix.platform }}
VERSION: ${{steps.tag.outputs.tag}}
DOWNLOAD_URL: http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com/release/tea_gui_${{steps.tag.outputs.tag}}.${{matrix.platform}}.${{ matrix.platform == 'ubuntu-latest' && 'deb' || 'dmg'}}

View file

@ -1,7 +1,7 @@
[package] [package]
name = "app" name = "app"
version = "0.1.0" version = "0.1.0"
description = "A tea.xyz desktop app" description = "A tea.xyz desktop app "
authors = ["you"] authors = ["you"]
license = "" license = ""
repository = "" repository = ""

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 147 KiB