Skip to content

Commit

Permalink
Added CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrix9999 committed Dec 7, 2024
1 parent 0189a73 commit 291f179
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "Plugin CI/CD"

on:
release:
types: [created]

jobs:
plugin:
runs-on: windows-latest

steps:
- name: Check out repository
uses: actions/checkout@v4
with:
submodules: recursive
lfs: true

- name: Set up MSVC
uses: ilammy/[email protected]
with:
arch: x86

- name: Compile plugin
run: |
cmake . --preset MP-Release
cmake --build --preset MP-Release
- name: Find plugin
run: |
$plugin_dll = Get-ChildItem *.dll -Recurse | Select-Object -First 1 -ExpandProperty FullName
$plugin_dll = $plugin_dll.Replace((Resolve-Path ".").Path + "\", "")
$plugin_dll = $plugin_dll.Replace("\", "/")
echo "plugin_dll=$plugin_dll" >> $env:GITHUB_ENV
echo "Found plugin path: $env:plugin_dll"
- name: Upload plugin
uses: softprops/action-gh-release@v2
with:
body_path: changelog.md
files: ${{ env.plugin_dll }}
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Refactorized code base to support multiple gothic platforms
- Added support for **gothic 2** platform

0 comments on commit 291f179

Please sign in to comment.