mirror of
https://github.com/morpheus65535/bazarr
synced 2025-01-03 05:25:28 +00:00
Fix issues on automatic workflows and add ui to Github Release
This commit is contained in:
parent
cf29c1437d
commit
21a728c13b
3 changed files with 11 additions and 1 deletions
7
.github/workflows/release_beta_to_dev.yaml
vendored
7
.github/workflows/release_beta_to_dev.yaml
vendored
|
@ -7,6 +7,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
UI_DIRECTORY: ./frontend
|
UI_DIRECTORY: ./frontend
|
||||||
|
ASSET_DIRECTORY: ./__builds__
|
||||||
FETCH_DEPTH: 15 # Should be enough
|
FETCH_DEPTH: 15 # Should be enough
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -43,5 +44,11 @@ jobs:
|
||||||
run: npm run build && git add .
|
run: npm run build && git add .
|
||||||
working-directory: ${{ env.UI_DIRECTORY }}
|
working-directory: ${{ env.UI_DIRECTORY }}
|
||||||
|
|
||||||
|
- name: Save UI to Asset
|
||||||
|
run: |
|
||||||
|
mkdir -p ../.${{ env.ASSET_DIRECTORY }} &&
|
||||||
|
zip -r ../.${{ env.ASSET_DIRECTORY }}/ui.zip ./ -x '*.map' -b $(mktemp -d)
|
||||||
|
working-directory: ${{ env.UI_DIRECTORY }}/build
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
run: release-it --ci --increment prerelease --preRelease=beta
|
run: release-it --ci --increment prerelease --preRelease=beta
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -11,6 +11,8 @@ bazarr.pid
|
||||||
/bin
|
/bin
|
||||||
/.vscode
|
/.vscode
|
||||||
|
|
||||||
|
# CI
|
||||||
|
/__builds__
|
||||||
/package.json
|
/package.json
|
||||||
/package-lock.json
|
/package-lock.json
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
{
|
{
|
||||||
"git": {
|
"git": {
|
||||||
"requireCleanWorkingDir": false,
|
"requireCleanWorkingDir": false,
|
||||||
"changelog": "auto-changelog --stdout"
|
"changelog": "auto-changelog --stdout",
|
||||||
|
"tagName": "v${version}"
|
||||||
},
|
},
|
||||||
"github": {
|
"github": {
|
||||||
"release": true,
|
"release": true,
|
||||||
|
|
Loading…
Reference in a new issue