From 7b0a4d619581d805a38492f1839c021bb5fc4041 Mon Sep 17 00:00:00 2001 From: ishowta Date: Mon, 11 Mar 2024 03:24:42 +0900 Subject: [PATCH] update workflow --- .github/workflows/release.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a84f0cb..5a1049f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,8 +4,9 @@ permissions: contents: write on: - release: - types: [created] + push: + tags: + - "v*.*.*" workflow_dispatch: jobs: @@ -18,10 +19,18 @@ jobs: target: [x86_64-pc-windows-gnu, x86_64-unknown-linux-musl] steps: - uses: actions/checkout@master - - name: Compile and release + - name: Compile uses: rust-build/rust-build.action@v1.4.5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: RUSTTARGET: ${{ matrix.target }} - EXTRA_FILES: "README.md LICENSE" + UPLOAD_MODE: none + - name: Release + uses: softprops/action-gh-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + files: | + ${{ steps.compile.outputs.BUILT_ARCHIVE }} + ${{ steps.compile.outputs.BUILT_CHECKSUM }} \ No newline at end of file