From 2c4a37d4c07160925249c697a08573842a3a921a Mon Sep 17 00:00:00 2001 From: rankun Date: Sun, 22 Mar 2020 18:18:48 +0800 Subject: [PATCH] chore: update windows.yml --- .github/workflows/windows.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 9ae6eae..d85a360 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -91,5 +91,14 @@ jobs: # https://help.github.com/en/actions/configuring-and-managing-workflows/persisting-workflow-data-using-artifacts - uses: actions/upload-artifact@v1 with: - name: ${{ env.publish_dir }} - path: ci\build\${{ env.publish_dir }} \ No newline at end of file + name: ${{ env.publish_dir }}-artifact + path: ci\build\${{ env.publish_dir }} + # 上传release + # https://github.com/softprops/action-gh-release + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: ci/build/${{ env.publish_dir }}.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file