Skip to content

Commit 998ab51

Browse files
committed
fix(ci-workflows): fix artifact upload step in ci and cd workflows
- 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.
1 parent 60c2f94 commit 998ab51

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.github/workflows/cd.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,11 @@ jobs:
6666
export HOS_SDK_HOME=$(pwd)/hwsdk
6767
./node_modules/.bin/hvigor --mode module -p product=default assembleHap --no-daemon --accept-license
6868
69-
- name: Upload artifact
70-
uses: actions/upload-artifact@v4
69+
- name: Upload assets to release
70+
uses: svenstaro/upload-release-action@v2
7171
with:
72-
name: entry-default-unsigned.hap
73-
path: entry/build/default/outputs/default/entry-default-unsigned.hap
72+
repo_token: ${{ secrets.GITHUB_TOKEN }}
73+
file: entry/build/default/outputs/default/entry-default-unsigned.hap
74+
tag: ${{ github.ref }}
75+
overwrite: true
76+
file_glob: true

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,9 @@ jobs:
6262
# for ERROR: Unable to find 'hwsdk.dir' in 'local.properties' or 'HOS_SDK_HOME' in the system environment path.
6363
export HOS_SDK_HOME=$(pwd)/hwsdk
6464
./node_modules/.bin/hvigor --mode module -p product=default assembleHap --no-daemon
65+
66+
- name: Upload artifact
67+
uses: actions/upload-artifact@v4
68+
with:
69+
name: entry-default-unsigned.hap
70+
path: entry/build/default/outputs/default/entry-default-unsigned.hap

0 commit comments

Comments
 (0)