mirror of https://github.com/morpheus65535/bazarr
no log: Add a step to build standalone version in action and upload to asset
This commit is contained in:
parent
535c32ba91
commit
e88c94ccd2
|
@ -0,0 +1,7 @@
|
||||||
|
bazarr
|
||||||
|
frontend/build
|
||||||
|
libs
|
||||||
|
___init__.py
|
||||||
|
bazarr.py
|
||||||
|
requirements.txt
|
||||||
|
VERSION
|
|
@ -0,0 +1,25 @@
|
||||||
|
#! /bin/bash
|
||||||
|
# This script is used in release-it as hook
|
||||||
|
# Change how this script is triggered by editing .release-it.json
|
||||||
|
# NOTE: Please make sure working directory is in root of repo
|
||||||
|
# NOTE: This script is only working on linux
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Get version from tag
|
||||||
|
git describe --abbrev=0 > VERSION
|
||||||
|
|
||||||
|
# Copy files based on files_to_copy
|
||||||
|
to_dist=__builds__/bazarr
|
||||||
|
mkdir -p $to_dist
|
||||||
|
file_list=$(cat .github/files_to_copy)
|
||||||
|
for f in $file_list
|
||||||
|
do
|
||||||
|
echo "**** copying $f to release ****"
|
||||||
|
cp -r --parents $f $to_dist
|
||||||
|
done
|
||||||
|
|
||||||
|
pushd __builds__/bazarr
|
||||||
|
zip -r ../bazarr.zip . -x '*.map' -b $(mktemp -d)
|
||||||
|
popd
|
||||||
|
rm -rf $to_dist
|
|
@ -41,6 +41,7 @@ jobs:
|
||||||
|
|
||||||
- name: Install Global Tools
|
- name: Install Global Tools
|
||||||
run: npm install -g release-it @release-it/bumper auto-changelog
|
run: npm install -g release-it @release-it/bumper auto-changelog
|
||||||
|
# TODO: Remove @release-it/bumper
|
||||||
|
|
||||||
- name: Install UI Dependencies
|
- name: Install UI Dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
|
@ -49,12 +50,7 @@ jobs:
|
||||||
- name: Build & Stage UI
|
- name: Build & Stage UI
|
||||||
run: npm run build && git add .
|
run: npm run build && git add .
|
||||||
working-directory: ${{ env.UI_DIRECTORY }}
|
working-directory: ${{ env.UI_DIRECTORY }}
|
||||||
|
# TODO: Remove Stage Step
|
||||||
- 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
|
||||||
|
|
|
@ -13,6 +13,12 @@
|
||||||
"publish": false,
|
"publish": false,
|
||||||
"ignoreVersion": true
|
"ignoreVersion": true
|
||||||
},
|
},
|
||||||
|
"hooks": {
|
||||||
|
"after:git:release": [
|
||||||
|
"chmod +x .github/scripts/*",
|
||||||
|
".github/scripts/create_asset.sh"
|
||||||
|
]
|
||||||
|
},
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"@release-it/bumper": {
|
"@release-it/bumper": {
|
||||||
"in": {
|
"in": {
|
||||||
|
|
Loading…
Reference in New Issue