diff --git a/.github/release_template.md b/.github/release_template.md
new file mode 100644
index 00000000..05903d2e
--- /dev/null
+++ b/.github/release_template.md
@@ -0,0 +1,18 @@
+[![EdgeGamers](https://cdn.edgm.io/images/brand/ego_text_blue.webp)](https://edgm.rs/)⠀⠀[![Discord](https://img.shields.io/discord/161245089774043136?style=for-the-badge&logo=discord&logoColor=%23ffffff&label=Join%20Our%20Discord&color=%235865F2
+)](https://edgm.rs/discord)⠀⠀[![Commits](https://img.shields.io/badge/COMMITS-gray?style=for-the-badge&logo=git&logoColor=%23fff&color=f05032)](https://github.com/edgegamers/Jailbreak/commits/1.0.0)
+
+## Major Changes
+- **⚙️ Server**
+- **👮 Guards**
+- **🎃 Prisoners**
+- **🛕 Maps**
+
+## Installing
+
+To install Jailbreak, download the `jailbreak.zip` file below and extract it into your CounterStrikeSharp `plugins` directory.
+Jailbreak is ready-to-run out of the box without any additional configuration.
+
+## Known Issues
+
+*No known issues yet!*
+To report a bug or issue with this release, please [open an issue](https://github.com/edgegamers/Jailbreak/issues)
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index fbe2cec8..f4ff3466 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -7,34 +7,35 @@ on: [push, pull_request]
jobs:
build:
-
runs-on: ubuntu-latest
-
steps:
- uses: actions/checkout@v4
- - name: Insert Job Version
- run: sed -i "s/{GIT_VERSION}/${{github.run_number}}/g" src/Jailbreak/Jailbreak.cs
-
+ with:
+ fetch-depth: 0
+ fetch-tags: true
+ show-progress: true,
+
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
+
- run: |
dotnet restore
dotnet build src/Jailbreak/Jailbreak.csproj --no-restore
dotnet publish src/Jailbreak/Jailbreak.csproj --no-build --no-restore
-
+
- uses: actions/upload-artifact@v4.0.0
with:
name: jailbreak-nightly
- path: build
+ path: build/Jailbreak
# If build didn't put any artifacts in the build folder, consider it an error
if-no-files-found: error
post_webhook:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev'
-
+
steps:
- name: POST Webhook
run: |
@@ -42,4 +43,4 @@ jobs:
--fail \
-F token=${{ secrets.GITLAB_SECRET_TOKEN }} \
-F ref=dev \
- https://gitlab.edgegamers.io/api/v4/projects/2594/trigger/pipeline
\ No newline at end of file
+ https://gitlab.edgegamers.io/api/v4/projects/2594/trigger/pipeline
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 00000000..11c0b5b6
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,43 @@
+name: Release
+
+on:
+ push:
+ branches-ignore:
+ - "*"
+ tags:
+ - "*"
+
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ fetch-tags: true
+ show-progress: true,
+
+ - name: Setup .NET SDK
+ uses: actions/setup-dotnet@v4
+ with:
+ dotnet-version: 8.0.x
+
+ - run: |
+ dotnet restore
+ dotnet build src/Jailbreak/Jailbreak.csproj --no-restore
+ dotnet publish src/Jailbreak/Jailbreak.csproj --no-build --no-restore
+
+ - uses: actions/upload-artifact@v4.0.0
+ with:
+ name: jailbreak
+ path: build/Jailbreak
+ # If build didn't put any artifacts in the build folder, consider it an error
+ if-no-files-found: error
+
+ - name: Release
+ uses: softprops/action-gh-release@v1
+ with:
+ draft: true
+ fail_on_unmatched_files: true
+ files: build/Jailbreak.zip
+ body_path: .github/release_template.md
diff --git a/src/Jailbreak/Jailbreak.cs b/src/Jailbreak/Jailbreak.cs
index 1bd605e4..90934284 100644
--- a/src/Jailbreak/Jailbreak.cs
+++ b/src/Jailbreak/Jailbreak.cs
@@ -29,7 +29,7 @@ public Jailbreak(IServiceProvider provider)
public override string ModuleName => "Jailbreak";
///
- public override string ModuleVersion => "1.0.0.{GIT_VERSION}";
+ public override string ModuleVersion => $"{GitVersionInformation.SemVer} ({GitVersionInformation.ShortSha})";
///
public override string ModuleAuthor => "EdgeGamers Development";
@@ -74,4 +74,4 @@ public override void Unload(bool hotReload)
base.Unload(hotReload);
}
-}
\ No newline at end of file
+}
diff --git a/src/Jailbreak/Jailbreak.csproj b/src/Jailbreak/Jailbreak.csproj
index 2a615055..945c2eeb 100644
--- a/src/Jailbreak/Jailbreak.csproj
+++ b/src/Jailbreak/Jailbreak.csproj
@@ -18,10 +18,34 @@
true
+
+
+
+ true
+ true
+
+ false
+ false
+ false
+
+ false
+ true
+
+ $(GitVersion_ToolArgments) /verbosity Normal
+ $(GitVersion_ToolArgments) /overrideconfig mode=ContinuousDelivery
+ $(GitVersion_ToolArgments) /overrideconfig assembly-file-versioning-format="{SemVer}"
+ $(GitVersion_ToolArgments) /overrideconfig assembly-versioning-format="{Major}.{Minor}.{Patch}.{CommitsSinceVersionSource}"
+ $(GitVersion_ToolArgments) /overrideconfig assembly-informational-format="{FullSemVer}{EscapedBranchName}"
+ $(GitVersion_ToolArgments) /overrideconfig commit-message-incrementing=Disabled
+ $(GitVersion_ToolArgments) /overrideconfig increment=Patch
+
+
- $(MSBuildThisFileDirectory)/../../build/Jailbreak
+ $(MSBuildThisFileDirectory)/../../build
+ $(PublishBaseDirectory)/Jailbreak
+
false
false
true
@@ -42,4 +66,18 @@
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+
+
+
+
+