Skip to content

Generate Dict

Generate Dict #166

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Generate Dict
on:
schedule:
- cron: '0 0 ? ? 5'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- run: npm ci
- run: npm run build
- name: 'Upload Dict'
uses: actions/upload-artifact@v2
with:
name: pcr-dict
path: ./pcr-dict.zip
- name: Release
uses: softprops/action-gh-release@v1
with:
body: '- 每周自动更新'
name: 第 ${{ github.run_number }} 次自动更新
tag_name: ${{ github.run_id }}
files: ./pcr-dict.zip
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install lanzou-api
- name: Upload to lanzou
run: python upload2lanzou.py
env:
LANZOU_COOKIE: ${{ secrets.LANZOU_COOKIE }}
SERVER_KEY: ${{ secrets.SERVER_KEY }}