From d5e0ff52952819d08c082bbbfed6b2c3e3555333 Mon Sep 17 00:00:00 2001 From: AOYAMA Kazuharu Date: Sun, 3 Nov 2024 15:40:43 +0900 Subject: [PATCH] updated --- .github/workflows/build-relase.yml | 74 +++++++++++++----------------- 1 file changed, 33 insertions(+), 41 deletions(-) diff --git a/.github/workflows/build-relase.yml b/.github/workflows/build-relase.yml index 14e43f9..e6f3dc9 100644 --- a/.github/workflows/build-relase.yml +++ b/.github/workflows/build-relase.yml @@ -1,17 +1,17 @@ name: Build and Release -# on: -# push: -# tags: -# - 'v*' - on: push: - branches: - - master - pull_request: - branches: - - master + tags: + - 'v*' + +# on: +# push: +# branches: +# - master +# pull_request: +# branches: +# - master jobs: build: @@ -37,45 +37,37 @@ jobs: vs-version: '16.11' msbuild-architecture: x64 - # - name: Set up MSVC - # shell: cmd - # run: | - # call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" - # where.exe cl.exe - # where.exe nmake.exe - - name: Build shell: cmd run: | call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" - echo %PATH% - where.exe qmake - where.exe cl.exe - where.exe nmake.exe + # where.exe qmake + # where.exe cl.exe + # where.exe nmake.exe qmake CONFIG+=release nmake - name: Create 7Z file run: | - 7z a cpi-windows.7z cpi.exe LICENSE translations + 7z a cpi-windows.7z cpi.exe Qt6Core.dll LICENSE translations - # - name: Create release - # id: create_release - # uses: actions/create-release@main - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # tag_name: ${{ github.ref }} - # release_name: Release ${{ github.ref }} - # draft: false - # prerelease: false + - name: Create release + id: create_release + uses: actions/create-release@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false - # - name: Upload release asset - # uses: actions/upload-release-asset@main - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # upload_url: ${{ steps.create_release.outputs.upload_url }} - # asset_path: cpi-windows.7z - # asset_name: cpi-windows-${{ github.ref_name }}.7z - # asset_content_type: application/x-7z-compressed + - name: Upload release asset + uses: actions/upload-release-asset@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: cpi-windows.7z + asset_name: cpi-windows-${{ github.ref_name }}.7z + asset_content_type: application/x-7z-compressed