-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from MarvNC:MarvNC/issue28
Add Workflow for Daily Builds
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
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: Get Current Date | ||
id: date | ||
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | ||
|
||
- name: Download Latest CSVs | ||
run: npm run download | ||
|
||
- name: Build Dictionary | ||
run: npm run buildTermDict | ||
|
||
- name: Create and Publish Release | ||
uses: softprops/action-gh-release@v1 | ||
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). |
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