From 018c8d078d3a12b30856c9a270ce5e5c40719b5a Mon Sep 17 00:00:00 2001 From: Edmand46 Date: Sat, 14 May 2022 23:46:09 +0400 Subject: [PATCH] 1.0.0-rc --- .github/workflows/main.yml | 73 +++++++++++++++++++ .../Configuration/ConfigurationLoader.cs | 2 +- readme.md | 6 +- 3 files changed, 77 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d6cb82c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,73 @@ +name: Release + +on: + push: + tags: + - 'v*' + +jobs: + release: + name: Create release + runs-on: ubuntu-latest + outputs: + upload_url: ${{ steps.release.outputs.upload_url }} + steps: + - name: Create release + id: release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: SimpleServer-${{ github.ref }} + + build: + name: Release + needs: release + strategy: + matrix: + kind: ['linux', 'windows', 'macOS'] + include: + - kind: linux + os: ubuntu-latest + target: linux-x64 + - kind: windows + os: windows-latest + target: win-x64 + - kind: macOS + os: macos-latest + target: osx-x64 + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: Get Tag + shell: bash + run: | + echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV + - name: Setup dotnet + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 6.0.x + - name: Build + shell: bash + run: | + release_name="SimpleServer-${{ env.TAG }}-${{ matrix.target }}" + + # Build everything + dotnet publish SimpleServer/SimpleServer.csproj -c Release --runtime "${{ matrix.target }}" -p:PublishSingleFile=true -o "$release_name" + + # Pack files + 7z a -tzip "${release_name}.zip" "./${release_name}/*" + + # Delete output directory + rm -r "$release_name" + - name: Upload + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ needs.release.outputs.upload_url }} + asset_path: SimpleServer-${{ env.TAG }}-${{ matrix.target }}.zip + asset_name: SimpleServer-${{ env.TAG }}-${{ matrix.target }}.zip + asset_content_type: application/zip diff --git a/Ragon/Sources/Configuration/ConfigurationLoader.cs b/Ragon/Sources/Configuration/ConfigurationLoader.cs index 85beb10..f2ee380 100755 --- a/Ragon/Sources/Configuration/ConfigurationLoader.cs +++ b/Ragon/Sources/Configuration/ConfigurationLoader.cs @@ -9,7 +9,7 @@ namespace Ragon.Core public static class ConfigurationLoader { private static readonly Logger _logger = LogManager.GetCurrentClassLogger(); - private static readonly string _serverVersion = "2.0.0-preview"; + private static readonly string _serverVersion = "1.0.0-rc"; private static void CopyrightInfo() { diff --git a/readme.md b/readme.md index 0b08648..28334dd 100755 --- a/readme.md +++ b/readme.md @@ -38,9 +38,9 @@ Ragon is fully free high perfomance room based game server with plugin based arc - OSX, Windows, Linux(Ubuntu, Debian) - .NET 6.0 ### Dependencies -* ENet-Sharp -* NetStack -* RingBuffer-Unity3D +* ENet-Sharp v2.4.8 +* NetStack latest +* RingBuffer-Unity3D latest ### License SSPL-1.0