diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3e2e542..ca331c1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,10 +4,20 @@ on: push: branches: - "*" + tags: + - '[0-9]+.[0-9]+.[0-9]+' pull_request: branches: - "*" types: [opened, synchronize, reopened] + +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + +env: + PREMAKE_VERSION: "5.0.0-beta2" + jobs: build: name: Build binaries @@ -28,8 +38,13 @@ jobs: - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.1.3 + - name: Add premake5 to PATH + uses: abel0b/setup-premake@v2.3 + with: + version: ${{ env.PREMAKE_VERSION }} + - name: Generate project files - run: tools/premake5 vs2022 + run: premake5 vs2022 - name: Set up problem matching uses: ammaraskar/msvc-problem-matcher@master @@ -43,3 +58,26 @@ jobs: name: ${{matrix.configuration}} binaries path: | build/bin/${{matrix.configuration}}/t4sp-server-plugin.dll + + deploy: + name: Deploy release + runs-on: ubuntu-latest + needs: [ build ] + if: startsWith(github.ref, 'refs/tags/') && (github.event.base_ref == 'refs/heads/main' || github.event.base_ref == 'refs/heads/develop') + steps: + - name: Check out files + uses: actions/checkout@v3.5.3 + + - name: Download Binaries + uses: actions/download-artifact@v3.0.2 + with: + name: ${{matrix.configuration}} binaries + + - name: Create Release + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: false + draft: true + files: | + t4sp-server-plugin.dll \ No newline at end of file diff --git a/README.md b/README.md index 5bb99ec..1b879ac 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ Move the `t4sp-server-plugin.dll` to `%LOCALAPPDATA%\Plutonium\storage\t4\plugin # Credits - momo5502 (https://github.com/momo5502) +- xensik (https://github.com/xensik/gsc-tool) - fedddddd (https://github.com/fedddddd/t6-gsc-utils) - VoroN (https://github.com/voron00/CoD2rev_Server) - CoD4x team (https://github.com/callofduty4x/CoD4x_Server) diff --git a/tools/premake5.exe b/tools/premake5.exe deleted file mode 100644 index 1a637aa..0000000 Binary files a/tools/premake5.exe and /dev/null differ