Skip to content

Commit

Permalink
build: release multi deploy_dir zip
Browse files Browse the repository at this point in the history
  • Loading branch information
IITII committed Aug 15, 2022
1 parent cd162d5 commit 4dba841
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@ jobs:
matrix:
include:
- os: ubuntu-latest
artifact_name: vnstat_dashboard/vnstat_dashboard.zip
asset_name: vnstat_dashboard.zip
release_name: vnstat_dashboard
artifact_name: zip/zip.zip
asset_name: zip.zip
release_name: zip
deploy_dir: '/'
- os: ubuntu-latest
artifact_name: zip_vn/zip_vn.zip
asset_name: zip_vn.zip
release_name: zip_vn
deploy_dir: '/vn'
steps:
- name: Checkout 🛎️
# If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
Expand All @@ -32,10 +38,11 @@ jobs:
- name: Install and Build 🔧
run: |
npm install
quasar build
npm run build
- name: Package Artifact 🎁
run: |
export RELEASE_NAME=${{ matrix.release_name }}
export PIC_DEPLOY_DIR=${{ matrix.deploy_dir }}
mkdir ${RELEASE_NAME}
zip -r ${RELEASE_NAME}/${RELEASE_NAME}.zip dist/spa/*
ls -alh ${RELEASE_NAME}
Expand Down

0 comments on commit 4dba841

Please sign in to comment.