Skip to content

Commit

Permalink
fix: Zip command
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanoksuz committed Aug 3, 2023
1 parent e571aa0 commit 2b74518
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Device Manager Extension CI/CD
name: Liman UI Build Pipeline
on: [push]
jobs:
build:
Expand All @@ -19,6 +19,16 @@ jobs:
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-

- name: Cache next build
uses: actions/cache@v3
with:
path: |
~/.npm
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.[jt]s', '**/*.[jt]sx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Install dependencies
run: sudo apt install jq -y

Expand All @@ -38,7 +48,8 @@ jobs:
- name: Create zip
run: |
zip -r /tmp/ui-${{ env.UI_BRANCH }}-${{ github.run_number }}.zip ./.next/standalone
cd .next/standalone
zip -r /tmp/ui-${{ env.UI_BRANCH }}-${{ github.run_number }}.zip .
- name: Release 🚀
id: create_release
Expand Down

0 comments on commit 2b74518

Please sign in to comment.