1212 harmony-release :
1313 runs-on : lynx-container
1414 container :
15- image : ghcr.io/lynx-family/ubuntu24.04-harmony:lastest
15+ image : ghcr.io/lynx-family/ubuntu24.04-harmony@sha256:8eb0ee8da7e8592669f0fcd41d0e1bc818b33a75e27943521f57af87d04db2fb
1616 credentials :
1717 username : lynx-family
1818 password : ${{ secrets.GITHUB_TOKEN }}
2929 git-cliff --version
3030 - name : Download Source
313132+ with :
33+ fetch-depth : 0
34+ fetch-tags : true
35+ - name : Get latest tag
36+ id : get-latest-tag
37+ uses : ./.github/actions/get-latest-tag
3238 - name : Get Tag Information
3339 run : |-
3440 version="${{ github.event.inputs.tag }}"
3945 run : |
4046 source tools/envsetup.sh
4147 hab sync . -f --target harmony
48+ - name : Generate Change Log
49+ shell : bash
50+ run : |
51+ COMMIT_ID=$(git rev-list -n 1 ${{ steps.get-latest-tag.outputs.latest-tag }})
52+ git-cliff --config harmony/primjs/cliff.toml \
53+ $COMMIT_ID..HEAD | sed 's/<!-- version -->/${{ steps.get_tag.outputs.VERSION }}/g' > harmony/primjs/CHANGELOG.md
54+ echo "CHANGELOG.md generated successfully"
55+ cat harmony/primjs/CHANGELOG.md
4256 - name : Generate Change Log
4357 shell : bash
4458 run : |
@@ -58,14 +72,14 @@ jobs:
5872 pushd harmony
5973 ./scripts/build.py --modules primjs --build_type Release --build_napi_adapter --version ${{ steps.get_tag.outputs.VERSION }}
6074 pushd primjs/build/default/outputs/default
61- ohpm publish primjs.har --publish_id ${{ secrets.HARMONY_PUBLISH_ID }} --key_path $PROJECT_ROOT/publish_key
75+ ls -la
6276 popd
6377 popd
64- - name : Push to release
65- uses : ncipollo/release-action@v1
66- with :
67- tag : ${{ steps.get_tag.outputs.VERSION }}
68- token : ${{ secrets.GITHUB_TOKEN }}
69- replacesArtifacts : true
70- allowUpdates : true
71- artifacts : " harmony/primjs/build/default/outputs/default/primjs.har"
78+ # - name: Push to release
79+ # uses: ncipollo/release-action@v1
80+ # with:
81+ # tag: ${{ steps.get_tag.outputs.VERSION }}
82+ # token: ${{ secrets.GITHUB_TOKEN }}
83+ # replacesArtifacts: true
84+ # allowUpdates: true
85+ # artifacts: "harmony/primjs/build/default/outputs/default/primjs.har"
0 commit comments