From 765a6f28511698d4a1b27727848f04066bb37281 Mon Sep 17 00:00:00 2001 From: neil Date: Thu, 22 Dec 2022 09:45:08 +0800 Subject: [PATCH] #99 fix tag/version dl link --- .github/notify-slack.js | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/notify-slack.js b/.github/notify-slack.js index d25c54c..0b96f7b 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 ${process.env.VERSION ? ('v'+process.env.VERSION) : ''}>` + text: `NEW BUILD FOR ${process.env.PLATFORM} <${process.env.DOWNLOAD_URL}|download ${process.env.VERSION || ''}>` } } ] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 300b644..a530515 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -87,4 +87,4 @@ jobs: 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'}} + 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'}}