From 65df00913effc297c8c5791dd3b05cf0fe495c9e Mon Sep 17 00:00:00 2001 From: neil Date: Thu, 22 Dec 2022 09:36:09 +0800 Subject: [PATCH] #99 release tagging --- .github/notify-slack.js | 2 +- .github/workflows/release.yml | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/notify-slack.js b/.github/notify-slack.js index eceedff..d25c54c 100755 --- a/.github/notify-slack.js +++ b/.github/notify-slack.js @@ -8,7 +8,7 @@ async function main() { type: 'section', text: { type: 'mrkdwn', - text: `NEW BUILD FOR ${process.env.PLATFORM} <${process.env.DOWNLOAD_URL}|download>` + text: `NEW BUILD FOR ${process.env.PLATFORM} <${process.env.DOWNLOAD_URL}|download ${process.env.VERSION ? ('v'+process.env.VERSION) : ''}>` } } ] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6487bb8..300b644 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -80,4 +80,11 @@ jobs: 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_latest.${{matrix.platform}}.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 \ No newline at end of file + 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_${{ steps.date.outputs.unix_seconds }}.${{ matrix.platform == 'ubuntu-latest' && 'deb' || 'dmg'}}