diff --git a/.github/workflows/win.yaml b/.github/workflows/win.yaml index 52b991e1..ee9db1f6 100644 --- a/.github/workflows/win.yaml +++ b/.github/workflows/win.yaml @@ -30,6 +30,33 @@ jobs: - name: Build static solution run: msbuild /p:Configuration=${{ matrix.configuration }} /p:PlatformToolset=v143 /p:Platform=${{ matrix.platform }} msvc/uuu-static-link.sln - + + - name: Create or Update Release + id: create_or_update_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: UUU_1.5.${{ github.run_id }}_TEST + release_name: Release UUU_1.5.${{ github.sha }}_TEST + draft: true + prerelease: true + + - name: Upload Build Artifacts + uses: actions/upload-artifact@v2 + with: + name: uuu.exe + path: ${GITHUB_WORKSPACE}/mfgtools/msvc/x64/Release/uuu.exe + + - name: Upload Assets + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_or_update_release.outputs.upload_url }} + asset_path: ${GITHUB_WORKSPACE}/mfgtools/msvc/x64/Release/uuu.exe + asset_name: uuu.exe + asset_content_type: application/octet-stream + - name: Build dynamic solution run: msbuild /p:Configuration=${{ matrix.configuration }} /p:PlatformToolset=v143 /p:Platform=${{ matrix.platform }} msvc/uuu.sln