fix #33
Workflow file for this run
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
on: | |
push: | |
tags: | |
- '*' | |
name: auto release | |
jobs: | |
narbuild: | |
name: auto release | |
runs-on: ubuntu-latest | |
steps: | |
- name: get tag name | |
run: echo TAG_NAME=${GITHUB_REF/refs\/tags\//} >> $GITHUB_ENV | |
- name: disable auto crlf | |
uses: steve02081504/disable-autocrlf@v1 | |
with: | |
fuck-auto-CRLF: true | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: build nars | |
run: | | |
rm -rf ./chinese-simplified/updates.txt ./chinese-traditional/updates.txt ./chinese-simplified/md5buildignore.txt ./chinese-traditional/md5buildignore.txt | |
7z a -tzip "chinese-simplified.nar" -mx=9 -mmt -mm=LZMA -md=1536m -mfb=273 -mtc=off "chinese-simplified" ".nar_icon" | |
7z a -tzip "chinese-traditional.nar" -mx=9 -mmt -mm=LZMA -md=1536m -mfb=273 -mtc=off "chinese-traditional" ".nar_icon" | |
- name: create release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: ${{ github.ref }} | |
body: | | |
[简体中文包](https://github.com/steve02081504/ssp-sinicization/releases/download/${{ env.TAG_NAME }}/chinese-simplified.nar):网址拖入在启动中的人格可 | |
[繁體中文包](https://github.com/steve02081504/ssp-sinicization/releases/download/${{ env.TAG_NAME }}/chinese-traditional.nar):網址拖入在啟動中的人格可 | |
在使用过程中发现问题后请先尝试在线更新你的ssp、人格、以及语言包 | |
若仍然有问题请[联系我](https://steve02081504.github.io/about/) | |
draft: false | |
prerelease: false | |
- name: upload chinese-simplified.nar | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./chinese-simplified.nar | |
asset_name: chinese-simplified.nar | |
asset_content_type: application/zip | |
- name: upload chinese-traditional.nar | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./chinese-traditional.nar | |
asset_name: chinese-traditional.nar | |
asset_content_type: application/zip |