Skip to content

Commit

Permalink
fix(ci-workflows): fix artifact upload step in ci and cd workflows
Browse files Browse the repository at this point in the history
- Modify `.github/workflows/ci.yml` to fix upload artifact step.
- Modify `.github/workflows/cd.yml` to use the correct action for uploading assets.
- Update upload configurations for both workflows.
  • Loading branch information
phodal committed Feb 29, 2024
1 parent 998ab51 commit 68ff11e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 3,514 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@ jobs:
command-line-tools/sdkmanager/bin/sdkmgr install toolchains:9 OpenHarmony/toolchains:9 --accept-license
# get current dir and export to HOS_SDK_HOME
- name: Install dependencies
run: npm ci
- name: Create OHPM package.json file
run: |
npm init -y
npm config set @ohos:registry=https://repo.harmonyos.com/npm/
npm install @ohos/hvigor @ohos/hvigor-ohos-plugin
- name: Build
run: |
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,17 @@ jobs:
command-line-tools/sdkmanager/bin/sdkmgr install toolchains:9 OpenHarmony/toolchains:9 --accept-license
# get current dir and export to HOS_SDK_HOME
- name: Install dependencies
run: npm ci
- name: Create OHPM package.json file
run: |
npm init -y
npm config set @ohos:registry=https://repo.harmonyos.com/npm/
npm install @ohos/hvigor @ohos/hvigor-ohos-plugin
- name: Build
run: |
# for ERROR: Unable to find 'hwsdk.dir' in 'local.properties' or 'HOS_SDK_HOME' in the system environment path.
export HOS_SDK_HOME=$(pwd)/hwsdk
./node_modules/.bin/hvigor --mode module -p product=default assembleHap --no-daemon --accept-license
- name: Build
run: |
Expand Down
13 changes: 0 additions & 13 deletions oh-package-lock.json5

This file was deleted.

13 changes: 0 additions & 13 deletions oh-package.json5

This file was deleted.

Loading

0 comments on commit 68ff11e

Please sign in to comment.