Skip to content

Commit

Permalink
B#50: add workflow_dispatch event trigger (#89)
Browse files Browse the repository at this point in the history
* chore: add workflow_dispatch event trigger

* translate:offline before build

* also trigger translation if feepmark configuration is changed

* updgrade deepmark
  • Loading branch information
izznat authored Sep 25, 2022
1 parent 8728081 commit c447255
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/translation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
paths:
- docs/**
- src/**
- deepmark.config.mjs
workflow_dispatch:

jobs:
translate:
name: Translate markdown, json, and yaml files with deepmark.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
"build": "docusaurus build",
"build": "yarn translate:offline && docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
Expand Down Expand Up @@ -36,7 +36,7 @@
},
"devDependencies": {
"axios": "^0.21.1",
"deepmark": "^0.1.2",
"deepmark": "^0.1.3",
"glob": "^8.0.3",
"husky": "^8.0.0",
"picocolors": "^1.0.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3751,10 +3751,10 @@ deepl-node@^1.6.0:
form-data "^3.0.0"
loglevel ">=1.6.2"

deepmark@^0.1.2:
version "0.1.2"
resolved "https://registry.yarnpkg.com/deepmark/-/deepmark-0.1.2.tgz#589a9cb08e05cfb94bca2c9db3fdc19792f1670e"
integrity sha512-BxpYkRzxWgC8I2HpmdX/mbjjpwIZ7zAvc+PPj4bc0TbW9kDviy5R+4yLfkxwBVygEfmcwI9nkeX1OSe3BkrnzA==
deepmark@^0.1.3:
version "0.1.3"
resolved "https://registry.yarnpkg.com/deepmark/-/deepmark-0.1.3.tgz#cee8b5eaff2c9a93f2d69af365fe54fdbcf2caf9"
integrity sha512-gZrWGPLN7VeWeS1AebJRj7dzEliANAUtO+tULfsK/q1I+AWetwlvoTtGJMxqMfoGsK3iRNzQ7ZEDj4YzeEeS6w==
dependencies:
acorn "^8.8.0"
acorn-jsx "^5.3.2"
Expand Down

0 comments on commit c447255

Please sign in to comment.