summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorLASER-Yi <[email protected]>2021-04-19 12:52:03 +0800
committerLASER-Yi <[email protected]>2021-04-19 12:52:03 +0800
commitac5d18923bc3106eaf1d9a415efbf90b8f978b58 (patch)
treee2d1e9d79b51b6834488da68d140f76b9aac59c8 /.github
parent3eef31762334c5c25834cf3c769dc7bae7b9e5d3 (diff)
downloadbazarr-ac5d18923bc3106eaf1d9a415efbf90b8f978b58.tar.gz
bazarr-ac5d18923bc3106eaf1d9a415efbf90b8f978b58.zip
no log: Fix some issues in release_dev_to_master pipeline
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release_dev_to_master.yaml23
1 files changed, 17 insertions, 6 deletions
diff --git a/.github/workflows/release_dev_to_master.yaml b/.github/workflows/release_dev_to_master.yaml
index afabd9acc..9df1f5e26 100644
--- a/.github/workflows/release_dev_to_master.yaml
+++ b/.github/workflows/release_dev_to_master.yaml
@@ -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 }}