forked from skettios/LuaBackend
-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (36 loc) · 1.03 KB
/
release.yml
File metadata and controls
38 lines (36 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
- name: vcpkg build
uses: johnwason/vcpkg-action@v6
id: vcpkg
with:
pkgs: pkgconf ztd-text wil tomlplusplus sol2 lua discord-rpc
triplet: x64-windows-static
token: ${{ github.token }}
github-binarycache: true
- name: Build Solution
run: |
cmake ${{ steps.vcpkg.outputs.vcpkg-cmake-config }} -S . -B build -DPROGRAM_VERSION:STRING="${{github.ref_name}}"
cmake --build build --config Release
- name: Compress Artifacts
run: |
7z a DBGHELP.zip ./build/Release/DBGHELP.dll ./config/LuaBackend.toml
- name: Automatic Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
draft: true
files: |
DBGHELP.zip