From bce141c38e867438c94de4b85fe582a23732e9ce Mon Sep 17 00:00:00 2001 From: Riley S Date: Tue, 28 Nov 2023 07:37:46 -0500 Subject: [PATCH] Update and rename msbuild.yml to PublishBinary.yml (#5) --- .../{msbuild.yml => PublishBinary.yml} | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) rename .github/workflows/{msbuild.yml => PublishBinary.yml} (70%) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/PublishBinary.yml similarity index 70% rename from .github/workflows/msbuild.yml rename to .github/workflows/PublishBinary.yml index c0cd7f3..3c1bf15 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/PublishBinary.yml @@ -1,9 +1,7 @@ -name: MSBuild +name: PublishBinary on: push: branches: [ "main" ] - pull_request: - branches: [ "main" ] env: SOLUTION_FILE_PATH: . @@ -44,10 +42,15 @@ jobs: - uses: actions/upload-artifact@v3 with: - name: AsaApiLoader.exe - path: ${{env.SOLUTION_FILE_PATH}}/x64/Release/AsaApiLoader.exe + name: AsaApiLoader + path: ${{env.SOLUTION_FILE_PATH}}/x64/Release/ - - uses: actions/upload-artifact@v3 + - name: Lastest Auto-Build + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') with: - name: AsaApiLoader.pdb - path: ${{env.SOLUTION_FILE_PATH}}/x64/Release/AsaApiLoader.pdb + files: | + ${{env.SOLUTION_FILE_PATH}}/x64/Release/AsaApiLoader.exe + ${{env.SOLUTION_FILE_PATH}}/x64/Release/AsaApiLoader.pdb + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}