From d6b9ee88cc0e65154825d6d628a807ce885721ab Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Thu, 7 Sep 2023 13:40:52 -0500 Subject: [PATCH] Add upload --- .github/workflows/windows.yml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index a849685b..6c0436da 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -3,9 +3,8 @@ name: Windows on: workflow_dispatch: push: - branches: [ master ] - pull_request: - branches: [ master ] + tags: + - '*' jobs: build: @@ -29,4 +28,23 @@ jobs: - name: package run: | cd _install - Compress-Archive -LiteralPath espeak-ng -DestinationPath espeak-ng_Windows_${{ matrix.arch }}.zip + Compress-Archive -LiteralPath espeak-ng -DestinationPath windows_amd64.zip + - name: release + uses: actions/create-release@v1 + id: create_release + env: + GITHUB_TOKEN: ${{ github.token }} + with: + draft: false + prerelease: false + release_name: ${{ github.ref }} + tag_name: ${{ github.ref }} + - name: upload + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: _install//bin/windows_amd64.zip + asset_name: windows-amd64.zip + asset_content_type: application/zip