-
Notifications
You must be signed in to change notification settings - Fork 0
113 lines (96 loc) · 2.83 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
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@v4
- name: Run integration script
run: ./main.bat
- name: Upload generated files
uses: actions/upload-artifact@v4
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@v4
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@v4
- uses: actions/download-artifact@v4
with:
name: font-artifact
- name: Release Action
uses: softprops/action-gh-release@v2
with:
files: |
*.zip
body_path: CHANGELOG.md
publish:
runs-on: windows-2019
needs: build
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: font-artifact
- name: Unzip mod
run: |
mkdir output
7z.exe x *.zip -ooutput
shell: cmd
- name: Get steamcmd
run: |
dir
curl https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip --output steamcmd.zip
7z.exe e steamcmd.zip -osteamcmd
dir
shell: cmd
- name: Checkout steamcmd config
uses: actions/checkout@v4
with:
repository: Cccc-owo/steamcmd
token: ${{ secrets.STEAMCMD_TOKEN }}
path: steamcmd/config
- name: Upload Steam workshop
run: |
cd steamcmd
dir
steamcmd.exe -dev -textmode -ignoredxsupportcfg +login %STEAM_LOGIN_NAME% +workshop_build_item ..\resources\GongWenKaiTi.vdf +workshop_build_item ..\resources\GuDianMingChaoTi.vdf +workshop_build_item ..\resources\GuDianMingChaoTi-W.vdf +workshop_build_item ..\resources\LiShu.vdf +workshop_build_item ..\resources\Source-Han-Serif.vdf +quit
env:
STEAM_LOGIN_NAME: ${{ secrets.STEAM_LOGIN_NAME }}
STEAM_LOGIN_PASSWORD: ${{ secrets.STEAM_LOGIN_PASSWORD }}
shell: cmd
continue-on-error: true