forked from Captain-Of-Coit/cs2-vehicle-counter
-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (55 loc) · 1.65 KB
/
ci.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
name: I18nCN-ci
on:
push:
branches: [ "master" ]
tags: [ "v*" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
bepinex-version: [5, 6]
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Checkout libcs2
uses: actions/checkout@v3
with:
repository: thx114/csl2
token: ${{ secrets.GH_PAT }}
path: csl2/
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Install NodeJS
uses: actions/setup-node@v3
with:
node-version: '21.1.0'
- name: Build (BepInEx ${{ matrix.bepinex-version }})
run: make package-unix BEPINEX_VERSION=${{ matrix.bepinex-version }}
- name: Upload Artifact (BepInEx ${{ matrix.bepinex-version }})
uses: actions/upload-artifact@v3
with:
name: built-code-${{ matrix.bepinex-version }}
path: dist/*.dll
publish:
needs: build
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Download built artifact
uses: actions/download-artifact@v3
with:
name: built-code-5
path: dist/
- name: Debug
run: ls && ls dist/
- name: Download tcli
run: |
curl -L https://github.com/thunderstore-io/thunderstore-cli/releases/download/0.2.1/tcli-0.2.1-linux-x64.tar.gz -o tcli.tar.gz
tar -xzf tcli.tar.gz
- name: Publish with tcli
run: ./tcli-0.2.1-linux-x64/tcli publish --token=${{ secrets.TS_TOKEN }}