Skip to content

Commit 2895153

Browse files
committed
using Github Actions
1 parent 43c127b commit 2895153

File tree

3 files changed

+49
-39
lines changed

3 files changed

+49
-39
lines changed

.github/workflows/release.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Auto Releases
2+
3+
on:
4+
push:
5+
branches: [ '1.0' ]
6+
workflow_dispatch:
7+
inputs:
8+
name:
9+
description: 'name'
10+
required: false
11+
default: 'test'
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up Python 3.7
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: '3.7'
22+
- name: Running checks
23+
run: |
24+
python check.py
25+
- name: Packing
26+
run: |
27+
mkdir SChinese
28+
mv * SChinese/ || true
29+
cd SChinese/ && mv check.py ../ && mv output.log ../ && cd ../
30+
curl -sSL -o packer.zip https://github.com/sffxzzp/Starbound-Chinese/releases/download/packer/asset_packer.zip && unzip packer.zip
31+
chmod a+x asset_packer && ./asset_packer "SChinese" "SChinese.pak"
32+
zip -9 "SChinese.zip" "SChinese.pak"
33+
echo "RBody=$(cat ./output.log)" >> $GITHUB_ENV
34+
echo "TagName=$(date -u '+%Z-%y%m%d-%H%M')" >> $GITHUB_ENV
35+
- name: Git Tag
36+
run: |
37+
git config --local user.name "$user_name"
38+
git config --local user.email "$user_email"
39+
git tag "${{ env.TagName }}"
40+
- name: Release
41+
uses: ncipollo/release-action@v1.8.6
42+
with:
43+
body: ${{ env.RBody }}
44+
name: ${{ env.TagName }}
45+
prerelease: true
46+
artifact: SChinese.zip
47+
tag: ${{ env.TagName }}
48+
token: ${{ secrets.GITHUB_TOKEN }}

.travis.yml

-38
This file was deleted.

_metadata

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"author" : "StarCore Localization Team",
3-
"description" : "[b]To English users: This is a Simplified-Chinese mod, Almost all text in game would be changed.\nIt may possibly affect your save file, So think TWICE before you decide to subscribe.[/b]\n\n[h1]Supports only 1.4.4[/h1]\n\n[h1]About:[/h1]\nMade by StarCore Localization Team.\nNow almost all text has been translated.\nNeed to install a Chinese-Font mod first.\n\n[h1]Usage (Read [b]BEFORE[/b] Subscribe):[/h1]\n1.Need to install a Chinese-Font mod first, click [url=https://github.com/sffxzzp/Starbound-Chinese/releases/download/StarCore-Font/StarCore.pak]here[/url] to download.\n mirror link 1 http s://www.lan zous.com/b644634\n [url=https://www.jianguoyun.com/p/DZcYbQgQoMcDGKLI6QE]mirror link 2[/url]\n [url=https://1drv.ms/f/s!Aml90vgiMULbhjup0TdAGjho8ILl]mirror link 3[/url]\n2.Subscribe this mod.[h1](though i think you shouldn't since you are not a native chinese speaker.)[/h1]\n3.[b]Start Starbound game from Steam.[/b](Start the game directly will not load workshop mods)\n\n[h1]ChangeLog:[/h1]\nSee [url=http://steamcommunity.com/sharedfiles/filedetails/changelog/807695810]here.[/here]",
3+
"description" : "[b]To English users: This is a Simplified-Chinese mod, Almost all text in game would be changed.\nIt may possibly affect your save file, So think TWICE before you decide to subscribe.[/b]\n\n[h1]Supports only 1.4.4[/h1]\n\n[h1]About:[/h1]\nMade by StarCore Localization Team.\nNow almost all text has been translated.\nNeed to install a Chinese-Font mod first.\n\n[h1]Usage (Read [b]BEFORE[/b] Subscribe):[/h1]\n1.Need to install a Chinese-Font mod first, click [url=https://cdn.jsdelivr.net/gh/sffxzzp/Starbound-Chinese@fonts/StarCore/StarCore.pak]here[/url] to download.\n mirror link 1 http s://www.lan zoux.com/b644634\n [url=https://www.jianguoyun.com/p/DZcYbQgQoMcDGKLI6QE]mirror link 2[/url]\n [url=https://1drv.ms/f/s!Aml90vgiMULbhjup0TdAGjho8ILl]mirror link 3[/url]\n [url=https://github.com/sffxzzp/Starbound-Chinese/releases/download/StarCore-Font/StarCore.pak]mirror link 4[/url]\n2.Subscribe this mod.[h1](though i think you shouldn't since you are not a native chinese speaker.)[/h1]\n3.[b]Start Starbound game from Steam.[/b](Start the game directly will not load workshop mods)\n\n[h1]ChangeLog:[/h1]\nSee [url=http://steamcommunity.com/sharedfiles/filedetails/changelog/807695810]here.[/url]\n\n[h1]Copyright:[/h1]\nCC BY-NC-SA 4.0",
44
"friendlyName" : "[StarCore Localization Team] Simplified Chinese Mod (zh_CN)",
55
"link" : "steam://url/CommunityFilePage/807695810",
66
"name" : "SChinese",

0 commit comments

Comments
 (0)