@@ -3,6 +3,7 @@ name: Build
|
||||
on:
|
||||
push:
|
||||
branches: [ "main", "master" ]
|
||||
tags: [ "v*" ]
|
||||
pull_request:
|
||||
branches: [ "main", "master" ]
|
||||
workflow_dispatch:
|
||||
@@ -53,3 +54,18 @@ jobs:
|
||||
|
||||
- name: Build 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