mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-10 17:13:35 +08:00
no log: Fix some issues in release_dev_to_master pipeline
This commit is contained in:
parent
3eef317623
commit
ac5d18923b
1 changed files with 17 additions and 6 deletions
23
.github/workflows/release_dev_to_master.yaml
vendored
23
.github/workflows/release_dev_to_master.yaml
vendored
|
@ -21,7 +21,7 @@ jobs:
|
|||
echo This action can only be run on development branch, not ${{ github.ref }}
|
||||
exit 1
|
||||
|
||||
- name: Checkout source code
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
@ -29,6 +29,13 @@ jobs:
|
|||
|
||||
- name: Setup Git
|
||||
run: git config --global user.name "github-actions"
|
||||
|
||||
- name: Cache node_modules
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: '${{ env.UI_DIRECTORY }}/node_modules'
|
||||
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: ${{ runner.os }}-modules-
|
||||
|
||||
- name: Setup NodeJS
|
||||
uses: actions/setup-node@v2
|
||||
|
@ -37,12 +44,16 @@ jobs:
|
|||
|
||||
- name: Install Global Tools
|
||||
run: npm install -g release-it @release-it/bumper auto-changelog
|
||||
# TODO: Remove @release-it/bumper
|
||||
|
||||
- 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: Install UI Dependencies
|
||||
run: npm install
|
||||
working-directory: ${{ env.UI_DIRECTORY }}
|
||||
|
||||
- name: Build & Stage UI
|
||||
run: npm run build && git add .
|
||||
working-directory: ${{ env.UI_DIRECTORY }}
|
||||
# TODO: Remove Stage Step
|
||||
|
||||
- name: Create Release
|
||||
run: release-it --ci --increment ${{ github.event.inputs.increment }}
|
||||
|
|
Loading…
Reference in a new issue