add translate

This commit is contained in:
lutinglt
2025-12-02 17:33:57 +08:00
parent 824eb26f1d
commit 13cd887d97
5 changed files with 76 additions and 13 deletions

View File

@@ -28,8 +28,6 @@ jobs:
run: |
npm install
npm run build
env:
GH_TOKEN: ${{ github.token }}
- name: Upload css assets
if: steps.build.outcome == 'success'
@@ -44,3 +42,15 @@ jobs:
with:
name: templates
path: templates
- name: Build locales
id: locales
if: steps.build.outcome =='success'
run: npm run tr
- name: Upload locales assets
if: steps.locales.outcome =='success'
uses: actions/upload-artifact@v4
with:
name: locales
path: dist/options/locale

View File

@@ -14,7 +14,7 @@ jobs:
- name: Build theme
run: |
npm install
npm run build
npm run release
- name: Create release
run: |
tar -zcf dist/theme-github-base.tar.gz --remove-files \
@@ -29,8 +29,9 @@ jobs:
tar -zcf dist/theme-github-extra-pink.tar.gz --remove-files \
dist/theme-github-pink-auto.css dist/theme-github-pink-light.css dist/theme-github-pink-dark.css dist/theme-github-pink-soft-dark.css
tar -zcf dist/theme-github-templates.tar.gz templates options
tar -zcf dist/theme-github-templates.tar.gz templates
tar -zcf dist/theme-github-translations.tar.gz --remove-files dist/options
TAG="v$(npm run -s version)"
gh release create "$TAG" dist/* --notes-file CHANGELOG.md --draft -t $TAG
gh release create "$TAG" dist/*.tar.gz --notes-file CHANGELOG.md --draft -t $TAG
env:
GH_TOKEN: ${{ github.token }}