remove cx4 as vanilla #1150
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Chinese Kenan Modpack | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- update | |
# schedule: | |
# * is a special character in YAML so you have to quote this string | |
# - cron: '0 0 * * *' | |
jobs: | |
deploy: | |
environment: Translation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
# - name: 拉取 Kenan 最新内容 by Merge from Upstream Repository | |
# continue-on-error: true | |
# # rebase 太慢了 | |
# uses: aormsby/[email protected] | |
# with: | |
# upstream_repository: Kenan2000/CDDA-Kenan-Modpack | |
# upstream_branch: master | |
# target_branch: master | |
- uses: actions/checkout@v4 | |
- name: Install Dependency | |
run: npm install | |
- name: 拉取 Paratranz 最新内容 | |
run: npm run import-paratranz | |
env: | |
PARATRANZ_TOKEN: ${{ secrets.PARATRANZ_TOKEN }} | |
- name: Build Mod | |
run: npm start | |
env: | |
BAIDU_TRANSLATION_APP_ID: ${{ secrets.BAIDU_TRANSLATION_APP_ID }} | |
BAIDU_TRANSLATION_SECRET: ${{ secrets.BAIDU_TRANSLATION_SECRET }} | |
SOUGOU_TRANSLATION_APP_ID: ${{ secrets.SOUGOU_TRANSLATION_APP_ID }} | |
SOUGOU_TRANSLATION_SECRET: ${{ secrets.SOUGOU_TRANSLATION_SECRET }} | |
QWEN: ${{ secrets.QWEN }} | |
- name: Build Wiki | |
run: npm run build-wiki | |
- uses: montudor/[email protected] | |
with: | |
args: zip -qq -r Kenan-Modpack-Mod汉化版.zip Kenan-Modpack-Chinese/ 汉化说明.txt 适配版本.txt | |
- name: Get build timestamp | |
id: get-timestamp | |
uses: nanzm/[email protected] | |
with: | |
timeZone: 8 | |
format: 'YYYY-MM-DD-HHmm' | |
- name: Echo environmental variables | |
id: generate_env_vars | |
run: | | |
echo "archive-${{ steps.get-timestamp.outputs.time }}" | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
prerelease: true | |
files: | | |
Kenan-Modpack-Mod汉化版.zip | |
name: 'CDDA-Kenan-Mod合集汉化版 ${{ steps.get-timestamp.outputs.time }} 测试包' | |
tag_name: ${{ steps.get-timestamp.outputs.time }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Deploy Tiddlywiki | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./public-dist | |
- name: Add & Commit | |
uses: EndBug/add-and-commit@v9 | |
with: | |
message: '自动拉取Paratranz最新内容并发布' | |
# pull_strategy: NO-PULL |