From a91a5348949f93585e274e6681243f116c4d1bc7 Mon Sep 17 00:00:00 2001 From: BoiHanny Date: Thu, 25 Jan 2024 12:15:29 +0100 Subject: [PATCH] Update for Action --- .github/workflows/main.yml | 10 ++++++++-- vrcosc-magicchatbox/MagicChatbox.csproj | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 83efcb8..0d6c388 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,7 @@ jobs: - name: Extract Version from csproj id: get_version run: | - $csproj = "${{ env.Project_Path }}" + $csproj = "vrcosc-magicchatbox\MagicChatbox.csproj" $pattern = '(.*)<\/Version>' $content = Get-Content $csproj -Raw $match = [regex]::Match($content, $pattern) @@ -44,12 +44,18 @@ jobs: exit 1 } shell: pwsh + env: + Solution_Name: vrcosc-magicchatbox.sln + Project_Path: vrcosc-magicchatbox\MagicChatbox.csproj + + - name: Create Zip File run: | Compress-Archive -Path vrcosc-magicchatbox/bin/Release/net6.0-windows10.0.22000.0/* -DestinationPath "MagicChatbox-${{ steps.get_version.outputs.VERSION }}.zip" - name: Create Release + id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.MY_PAT }} @@ -75,7 +81,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.MY_PAT }} with: - upload_url: ${{ steps.create_release.outputs.upload_url }} # Use the output from the create_release step + upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./MagicChatbox-${{ steps.get_version.outputs.VERSION }}.zip asset_name: MagicChatbox-${{ steps.get_version.outputs.VERSION }}.zip asset_content_type: application/zip diff --git a/vrcosc-magicchatbox/MagicChatbox.csproj b/vrcosc-magicchatbox/MagicChatbox.csproj index 6b22e0f..5acd3a6 100644 --- a/vrcosc-magicchatbox/MagicChatbox.csproj +++ b/vrcosc-magicchatbox/MagicChatbox.csproj @@ -2,7 +2,7 @@ WinExe - 0.8.732 + 0.8.733 net6.0-windows10.0.22000.0 vrcosc_magicchatbox enable