From 0e57caefd1a5e9dfdb6978ad779d94388cd2739f Mon Sep 17 00:00:00 2001 From: ikun0014 Date: Fri, 18 Oct 2024 21:28:04 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BD=A0CI=E4=B8=AA=E9=9B=86=E8=B4=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 31 +++++++++---------------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 99532fc..bc11b1b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,37 +43,24 @@ jobs: windows-icon-from-ico: icon.jpg company-name: ikunshare product-name: Onekey - file-version: ${{ env.PACKAGE_VERSION }} - product-version: ${{ env.PACKAGE_VERSION }} + file-version: ${{ github.sha }} + product-version: ${{ github.sha }} file-description: 一个Steam仓库清单下载器 copyright: Copyright © 2024 ikun0014 - output-file: Onekey---v${{ env.PACKAGE_VERSION }}.exe + output-file: Onekey_${{ github.sha }}.exe assume-yes-for-downloads: true output-dir: build - - name: Create git tag - uses: pkgdeps/git-tag-action@v3 + - name: Upload Artifact + uses: actions/upload-artifact@v4 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - github_repo: ${{ github.repository }} - version: ${{ env.PACKAGE_VERSION }} - git_commit_sha: ${{ github.sha }} - git_tag_prefix: "v" - - - name: Release - uses: softprops/action-gh-release@v2 - with: - tag_name: v${{ env.PACKAGE_VERSION }} - files: build/Onekey---v${{ env.PACKAGE_VERSION }}.exe - prerelease: false - draft: false - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + name: Onekey_${{ github.sha }}.exe + path: build/Onekey_${{ github.sha }}.exe - name: Upload to Telegram Channel run: | & curl -F "chat_id=${{ secrets.TELEGRAM_TO }}" ` - -F "document=@build/Onekey---v${{ env.PACKAGE_VERSION }}.exe" ` - -F "caption=Onekey's New CI Build ${{ env.PACKAGE_VERSION }}" ` + -F "document=@build/Onekey_${{ github.sha }}.exe" ` + -F "caption=Onekey's New CI Build ${{ github.sha }}" ` -F "parse_mode=Markdown" ` "https://api.telegram.org/bot${{ secrets.TELEGRAM_TOKEN }}/sendDocument"