@@ -3,6 +3,7 @@ name: Build
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main", "master" ]
|
branches: [ "main", "master" ]
|
||||||
|
tags: [ "v*" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main", "master" ]
|
branches: [ "main", "master" ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -53,3 +54,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Unlocker
|
- name: Build Unlocker
|
||||||
run: cmake --build build --target dbd-unlocker
|
run: cmake --build build --target dbd-unlocker
|
||||||
|
|
||||||
|
- name: Package Release
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
run: |
|
||||||
|
EXE=$(find build -name "*.exe" | head -1)
|
||||||
|
mkdir -p release
|
||||||
|
cp "$EXE" release/
|
||||||
|
cp res/*.json release/
|
||||||
|
cd release && zip -j ../unlocker.zip *
|
||||||
|
|
||||||
|
- name: Create Gitea Release
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
uses: akkuman/gitea-release-action@v1
|
||||||
|
with:
|
||||||
|
files: unlocker.zip
|
||||||
|
|||||||
Reference in New Issue
Block a user