diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f53a753..304bc6b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,8 @@ name: Build Workflow on: push: -# branches: master + tags: + - 'release' jobs: build-windows: @@ -32,8 +33,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ github.event.head_commit.message }} - release_name: ${{ github.event.head_commit.message }} + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} overwrite: true body: | Test Release v1.0.0 @@ -42,11 +43,11 @@ jobs: - name: Upload Release Asset id: upload-release-asset - uses: actions/upload-release-asset@v1 + uses: actions/upload-release-asset@latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{steps.create_release.outputs.upload_url}} + upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: dist/main.exe asset_name: bqt.exe - asset_content_type: application/zip \ No newline at end of file + asset_content_type: application/octet-stream \ No newline at end of file