-
-
Notifications
You must be signed in to change notification settings - Fork 21
55 lines (48 loc) · 1.54 KB
/
publish.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build and publish
# run on pushes to master OR on version tag creation
on:
push:
branches:
- master
tags:
- v*
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install CMake
uses: lukka/get-cmake@latest
- name: Build
uses: lukka/run-cmake@v10
with:
configurePreset: x64-windows
buildPreset: Release
- name: ZIP embedding tools
working-directory: build/bin/Release
run: |
7z a -tzip -mx=9 -r embedding_tools.zip fumo_encoder.exe fumo_generator.exe initial_loader.bin stage1.dll
- name: Publish release (version tag)
if: startsWith(github.ref, 'refs/tags/v')
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
draft: true
files: |
build/bin/Release/fumo.exe
build/bin/Release/fumo_encoder.exe
build/bin/Release/embedding_tools.zip
- name: Publish pre-release (push to master)
if: github.ref == 'refs/heads/master'
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: latest
title: Development build
prerelease: true
files: |
build/bin/Release/fumo.exe
build/bin/Release/fumo_encoder.exe
build/bin/Release/embedding_tools.zip