Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
h7ml authored Dec 28, 2024
2 parents 0cfb522 + e3dea92 commit ecf4d90
Show file tree
Hide file tree
Showing 9 changed files with 1,345 additions and 2,817 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@ on:
jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: write # 写入仓库内容
issues: write # 管理 issues
pull-requests: write # 管理 pull requests
actions: write # 修改 Actions 工作流
workflows: write # 修改工作流(.github/workflows)
discussions: write # 写入讨论区
statuses: write # 更新 commit 状态
packages: write # 上传、删除包
pages: write # 发布 GitHub Pages
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down Expand Up @@ -67,15 +76,15 @@ jobs:
mkdir -p translate
node ./dist/index.js -i ./src/system.md -o ./translate/system-gpt-4o-en.md -l English --openai-url https://models.inference.ai.azure.com/chat/completions --api-key ${{ secrets.OPENAI_API_KEY }} --model gpt-4o
node ./dist/index.js -i ./src/system.md -o ./translate/system-ministral-3b-ja.md -l Japanese --openai-url https://models.inference.ai.azure.com/chat/completions --api-key ${{ secrets.OPENAI_API_KEY }} --model Ministral-3B
node ./dist/index.js -i ./src/system.md -o ./translate/system-phi-3.5-mini-instruct-fr.md -l 法语 --openai-url https://models.inference.ai.azure.com/chat/completions --api-key ${{ secrets.OPENAI_API_KEY }} --model Phi-3.5-mini-instruct
node ./dist/index.js -i ./src/system.md -o ./translate/system-phi-3.5-mini-instruct-fr.md -l 法语 --openai-url https://models.inference.ai.azure.com/chat/completions --api-key ${{ secrets.OPENAI_API_KEY }} --model Ministral-3B
- name: Commit and Push
run: |
git add README-zh.md translate/
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git config advice.ignoredHook false
git commit -m "docs(README): update README-zh.md"
git push origin main || echo "Push to repository failed"
git push origin main --force || echo "Push to repository failed"
- name: Upload build artifacts
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Build
run: |
pnpm build || echo "Build failed"
node ./scripts/copy.js
- name: Generate Changelog
run: |
npx changelogen@latest --release --bump || echo "Changelog generation failed"
Expand Down
12 changes: 8 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
## v1.0.12

[compare changes](https://github.com/h7ml/ai-markdown-translator/compare/v1.0.12...v1.0.12)
[compare changes](https://github.com/h7ml/ai-markdown-translator/compare/v1.0.11...v1.0.12)

## v1.0.11

[compare changes](https://github.com/h7ml/ai-markdown-translator/compare/v1.0.11...v1.0.11)

### 💅 Refactors

Expand All @@ -10,7 +14,7 @@

- **README:** Update README-zh.md ([8ceca79](https://github.com/h7ml/ai-markdown-translator/commit/8ceca79))

- **release:** Update CHANGELOG for v1.0.12 [skip ci] ([d17947d](https://github.com/h7ml/ai-markdown-translator/commit/d17947d))
- **release:** Update CHANGELOG for v1.0.11 [skip ci] ([d17947d](https://github.com/h7ml/ai-markdown-translator/commit/d17947d))

### ❤️ Contributors

Expand All @@ -19,7 +23,7 @@

## v1.0.9

[compare changes](https://github.com/h7ml/ai-markdown-translator/compare/v1.0.12...v1.0.9)
[compare changes](https://github.com/h7ml/ai-markdown-translator/compare/v1.0.11...v1.0.9)

### 📖 Documentation

Expand All @@ -28,7 +32,7 @@

### 🏡 Chore

- **release:** Update CHANGELOG for v1.0.12 [skip ci] ([d17947d](https://github.com/h7ml/ai-markdown-translator/commit/d17947d))
- **release:** Update CHANGELOG for v1.0.11 [skip ci] ([d17947d](https://github.com/h7ml/ai-markdown-translator/commit/d17947d))

### ❤️ Contributors

Expand Down
Loading

0 comments on commit ecf4d90

Please sign in to comment.