Skip to content

Commit

Permalink
Merge pull request #5 from oscar-wos/1.3.3
Browse files Browse the repository at this point in the history
Fix automated tasks
Added GPG signing
  • Loading branch information
oscar-wos authored Jun 2, 2024
2 parents f22af57 + dec148b commit c8a20c0
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 21 deletions.
9 changes: 9 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[user]
name = Oscar Wos-Szlaga
email = 29248751+oscar-wos@users.noreply.github.com
signingkey = FA70884703C16D6B
[commit]
gpgsign = true
[gpg]
program = C:/Program Files (x86)/gnupg/bin/gpg.exe
GNUPGHOME=%USERPROFILE%\.gnupg
22 changes: 5 additions & 17 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
name: Build and Release

on:
push:
branches:
- main
pull_request_review:
types:
- submitted
issue_comment:
types:
- created
on: push

jobs:
build:
Expand Down Expand Up @@ -53,18 +44,15 @@ jobs:
- name: Create Directories
run: |
mkdir -p plugin/plugins/Sessions
mkdir -p plugin/plugins/SessionsTest
mkdir -p plugin/plugins/TestPlugin
mkdir -p plugin/shared/Sessions.API
mv ./TestPlugin/bin/Release/net8.0/TestPlugin.deps.json ./TestPlugin/bin/Release/net8.0/SessionsTest.deps.json
mv ./TestPlugin/bin/Release/net8.0/TestPlugin.dll ./TestPlugin/bin/Release/net8.0/SessionsTest.dll
mv ./TestPlugin/bin/Release/net8.0/TestPlugin.pdb ./TestPlugin/bin/Release/net8.0/SessionsTest.pdb
mv ./TestPlugin/bin/Release/net8.0/* ./plugin/plugins/SessionsTest
mv ./src/bin/Release/net8.0/* ./plugin/plugins/Sessions
mv ./TestPlugin/bin/Release/net8.0/* ./plugin/plugins/TestPlugin
mv ./Sessions.API/bin/Release/net8.0/* ./plugin/shared/Sessions.API
rm ./plugin/plugins/Sessions/Sessions.API.*
rm ./plugin/plugins/SessionsTest/Sessions.API.*
rm ./plugin/plugins/TestPlugin/Sessions.API.*
- name: Zip
run: |
Expand Down Expand Up @@ -110,4 +98,4 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./plugin/Sessions-${{ github.sha }}.zip
asset_name: Sessions.zip
asset_content_type: application/zip
asset_content_type: application/zip
3 changes: 1 addition & 2 deletions TestPlugin/TestPlugin.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using CounterStrikeSharp.API;
using CounterStrikeSharp.API.Core;
using CounterStrikeSharp.API.Core;
using CounterStrikeSharp.API.Core.Capabilities;
using Microsoft.Extensions.Logging;
using Sessions.API;
Expand Down
2 changes: 1 addition & 1 deletion src/Globals.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public partial class Sessions
public SessionsConfig Config { get; set; } = new();
public override string ModuleName => "Sessions";
public override string ModuleAuthor => "github.com/oscar-wos/Sessions";
public override string ModuleVersion => "1.3.2";
public override string ModuleVersion => "1.3.3";

public Server? Server;
private readonly Ip _ip = new();
Expand Down
2 changes: 1 addition & 1 deletion src/Sessions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Sessions;

public partial class Sessions : BasePlugin
public partial class Sessions : BasePlugin, IPluginConfig<SessionsConfig>
{
public void OnConfigParsed(SessionsConfig config)
{
Expand Down

0 comments on commit c8a20c0

Please sign in to comment.