-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (58 loc) · 1.42 KB
/
main.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
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Release
env:
TZ: Asia/Shanghai
on:
push:
paths-ignore:
- "README.md"
- "CHANGELOG.md"
- ".gitignore"
- "steamDESC.txt"
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run integration script
run: ./main.bat
- name: Upload generated files
uses: actions/upload-artifact@v3
with:
name: font-artifact
path: |
*.zip
nightly-release:
permissions: write-all
needs: build
runs-on: windows-latest
if: startsWith(github.ref, 'refs/tags/') != true
steps:
- uses: actions/download-artifact@v3
with:
name: font-artifact
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "nightly-release"
prerelease: true
title: "Action Build"
files: |
*.zip
release:
permissions: write-all
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: font-artifact
- name: Release Action
uses: softprops/action-gh-release@v1
with:
files: |
*.zip
body_path: CHANGELOG.md