mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-12-21 14:16:28 +00:00
add translate
This commit is contained in:
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@@ -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
|
||||
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user