-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (46 loc) · 1.47 KB
/
push.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
name: Main Workflow
on:
push:
pull_request:
release:
types:
- created
jobs:
build:
if: "!contains(github.event.head_commit.message, '[skip ci]') || github.event_name == 'release'"
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
Configuration: [Release]
steps:
- uses: actions/checkout@v4.1.6
with:
fetch-depth: 0
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: MSBuild
shell: cmd
run: |
msbuild _sources\FontGen.sln /t:Rebuild /p:Configuration=${{ matrix.Configuration }}
- name: Prepare artifacts
shell: cmd
run: |
set OGSR_ARTIFACT_NAME=Fonts_generator_1.${{ github.run_number }}.7z
cd .\Bin
7z a -t7z -m0=LZMA2:d=96m:fb=273 -mx=9 -mmt=2 ..\%OGSR_ARTIFACT_NAME% .\
- name: Upload OGSR artifact
uses: actions/upload-artifact@v4.3.3
with:
name: Fonts_generator_1.${{ github.run_number }}.7z
path: .\Fonts_generator_1.${{ github.run_number }}.7z
- name: Upload release asset
if: github.event_name == 'release'
uses: Czuz/upload-release-asset@v1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: .\Fonts_generator_1.${{ github.run_number }}.7z
asset_name: Fonts_generator_1.${{ github.run_number }}.7z
asset_content_type: application/zip