From 3aca485212a2a946a1470f880f3aa30b5edb8901 Mon Sep 17 00:00:00 2001 From: Huoji's Date: Tue, 10 Oct 2023 17:19:54 +0800 Subject: [PATCH 1/6] Update msbuild.yml --- .github/workflows/msbuild.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index fa68b50..959c0f7 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -47,3 +47,23 @@ jobs: with: name: csgo2.dll path: D:/a/csgo2_tiny_server_plugin_system/csgo2_tiny_server_plugin_system/Release/ + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false + - name: Upload Release Asset + id: upload_release_asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + asset_path: ./csgo2.dll + asset_name: csgo2.dll + asset_content_type: application/octet-stream From 4eb54b51b66fab0cb4ac96e77b2a13965593b81f Mon Sep 17 00:00:00 2001 From: Huoji's Date: Tue, 10 Oct 2023 17:29:03 +0800 Subject: [PATCH 2/6] Update msbuild.yml --- .github/workflows/msbuild.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 959c0f7..6047b62 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -20,9 +20,6 @@ env: # https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix BUILD_CONFIGURATION: Release -permissions: - contents: read - jobs: build: runs-on: windows-latest From 13a38ed82dc6c180cce3d85b0f2e08f350ebc4ef Mon Sep 17 00:00:00 2001 From: Huoji's Date: Tue, 10 Oct 2023 17:47:55 +0800 Subject: [PATCH 3/6] Update msbuild.yml --- .github/workflows/msbuild.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 6047b62..b369fcd 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -54,13 +54,16 @@ jobs: release_name: Release ${{ github.ref }} draft: false prerelease: false - - name: Upload Release Asset - id: upload_release_asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload to Release Action + # You may pin to the exact commit or the version. + # uses: Shopify/upload-to-release@9942a4c936dab172f7101dcc7dc20528ea949102 + uses: Shopify/upload-to-release@v1.0.1 with: - upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps - asset_path: ./csgo2.dll - asset_name: csgo2.dll - asset_content_type: application/octet-stream + # Artifact name + name: csgo2.dll + # Path to the file to upload + path: ./csgo2.dll + # Content type for the file + content-type: application/octet-stream + # secrets.GITHUB_TOKEN + repo-token: ${{ secrets.GITHUB_TOKEN }} From 9f37e414f2e0e39aea02bfdc3c4e2141d6efbce7 Mon Sep 17 00:00:00 2001 From: Huoji's Date: Tue, 10 Oct 2023 17:54:26 +0800 Subject: [PATCH 4/6] Update msbuild.yml --- .github/workflows/msbuild.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index b369fcd..0737238 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -54,16 +54,16 @@ jobs: release_name: Release ${{ github.ref }} draft: false prerelease: false - - name: Upload to Release Action + #- name: Upload to Release Action # You may pin to the exact commit or the version. # uses: Shopify/upload-to-release@9942a4c936dab172f7101dcc7dc20528ea949102 - uses: Shopify/upload-to-release@v1.0.1 - with: + # uses: Shopify/upload-to-release@v1.0.1 + # with: # Artifact name - name: csgo2.dll + # name: csgo2.dll # Path to the file to upload - path: ./csgo2.dll + # path: ./csgo2.dll # Content type for the file - content-type: application/octet-stream + # content-type: application/octet-stream # secrets.GITHUB_TOKEN - repo-token: ${{ secrets.GITHUB_TOKEN }} + # repo-token: ${{ secrets.GITHUB_TOKEN }} From c05d49b47fe34207e80849b20e585fd7358cade5 Mon Sep 17 00:00:00 2001 From: Huoji's Date: Tue, 10 Oct 2023 18:01:22 +0800 Subject: [PATCH 5/6] Update msbuild.yml --- .github/workflows/msbuild.yml | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 0737238..1c83a75 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -39,31 +39,23 @@ jobs: # Add additional options to the MSBuild command line here (like platform or verbosity level). # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} + - name: Upload build artifacts uses: actions/upload-artifact@v2 with: name: csgo2.dll path: D:/a/csgo2_tiny_server_plugin_system/csgo2_tiny_server_plugin_system/Release/ - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false - #- name: Upload to Release Action + + - name: Upload to Release Action # You may pin to the exact commit or the version. # uses: Shopify/upload-to-release@9942a4c936dab172f7101dcc7dc20528ea949102 - # uses: Shopify/upload-to-release@v1.0.1 - # with: + uses: Shopify/upload-to-release@v1.0.1 + with: # Artifact name - # name: csgo2.dll + name: csgo2.dll # Path to the file to upload - # path: ./csgo2.dll + path: ./csgo2.dll # Content type for the file - # content-type: application/octet-stream + content-type: application/octet-stream # secrets.GITHUB_TOKEN - # repo-token: ${{ secrets.GITHUB_TOKEN }} + repo-token: ${{ secrets.GITHUB_TOKEN }} From 5fa44b036e8916df3cdce8bcc69cc52b1e6f96af Mon Sep 17 00:00:00 2001 From: Huoji's Date: Tue, 10 Oct 2023 18:19:44 +0800 Subject: [PATCH 6/6] Update msbuild.yml --- .github/workflows/msbuild.yml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 1c83a75..86e900c 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -45,17 +45,3 @@ jobs: with: name: csgo2.dll path: D:/a/csgo2_tiny_server_plugin_system/csgo2_tiny_server_plugin_system/Release/ - - - name: Upload to Release Action - # You may pin to the exact commit or the version. - # uses: Shopify/upload-to-release@9942a4c936dab172f7101dcc7dc20528ea949102 - uses: Shopify/upload-to-release@v1.0.1 - with: - # Artifact name - name: csgo2.dll - # Path to the file to upload - path: ./csgo2.dll - # Content type for the file - content-type: application/octet-stream - # secrets.GITHUB_TOKEN - repo-token: ${{ secrets.GITHUB_TOKEN }}