-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 1.16 KB
/
daily-build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build and Release Dictionaries Daily
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
build-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: npm ci
- name: Download Latest CSVs
run: npm run download
- name: Get Current Date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Build Dictionaries
run: |
npm run buildTermDict ${{ steps.date.outputs.date }}
npm run buildHonziDict ${{ steps.date.outputs.date }}
- name: Create and Publish Release
uses: softprops/action-gh-release@v2
with:
files: dist/*
tag_name: ${{ steps.date.outputs.date }}
name: ${{ steps.date.outputs.date }}
token: ${{ secrets.GITHUB_TOKEN }}
body: |
This is an automated release of the latest Words.hk for Yomitan.
For more information, please see the [README](https://github.com/MarvNC/wordshk-yomitan).
Download the latest release below: the file name should look like `Words.hk.YYYY-MM-DD.zip`.