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 28, 2024
1 parent 60c2f94 commit 998ab51
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@ jobs:
export HOS_SDK_HOME=$(pwd)/hwsdk
./node_modules/.bin/hvigor --mode module -p product=default assembleHap --no-daemon --accept-license
- name: Upload artifact
uses: actions/upload-artifact@v4
- name: Upload assets to release
uses: svenstaro/upload-release-action@v2
with:
name: entry-default-unsigned.hap
path: entry/build/default/outputs/default/entry-default-unsigned.hap
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: entry/build/default/outputs/default/entry-default-unsigned.hap
tag: ${{ github.ref }}
overwrite: true
file_glob: true
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,9 @@ jobs:
# 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
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: entry-default-unsigned.hap
path: entry/build/default/outputs/default/entry-default-unsigned.hap

0 comments on commit 998ab51

Please sign in to comment.