Skip to content

1.3.5

1.3.5 #45

Workflow file for this run

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 }}