Skip to content

Commit

Permalink
Added gh-action to build and release (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca1991 authored Feb 19, 2024
1 parent e42ef41 commit 8798c9e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and Release on Tag

on:
push:
tags:
- v*

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up MSVC environment
uses: microsoft/setup-msbuild@v1

- name: Configure CMake
run: cmake -B build -S .

- name: Build
run: cmake --build build --config Release

- name: Archive Binaries
run: |
mkdir DCE-x86
cp "build/DiscCheckEmu APIHook/Release/DCEAPIHook.dll" DCE-x86/
cp "build/DiscCheckEmu Loader/Release/DCELoader.exe" DCE-x86/
cp "DCEConfig_TEMPLATE.yaml" DCE-x86/DCEConfig.yaml
cp "README.md" DCE-x86/README.txt
zip -r DiscCheckEmu-${{ github.ref_name }}-x86.zip DCE-x86/DCEAPIHook.dll DCE-x86/DCELoader.exe DCE-x86/DCEConfig.yaml DCE-x86/README.txt
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: DiscCheckEmu-${{ github.ref_name }}-x86.zip
1 change: 1 addition & 0 deletions DCEConfig_TEMPLATE.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# THIS IS A DCE CONFIGURATION TEMPLATE

0 comments on commit 8798c9e

Please sign in to comment.