Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/harmony-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: harmony sdk release

# on:
# workflow_dispatch:
# inputs:
# tag:
# description: 'release tag'
# required: true
# type: string
on:
pull_request:
branches: [ develop ]

jobs:
harmony-release:
runs-on: lynx-custom-dind
container:
image: ghcr.io/lynx-family/ubuntu24.04-harmony:lastest
options: --cap-add=NET_ADMIN
credentials:
username: lynx-family
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Set MTU
run: |
sudo apt install --no-install-recommends -y iproute2
sudo ip link set dev eth0 mtu 1450 # remain 50 for k8s overlay
echo "MTU set successfully"
- name: Check env
run: |
whoami
pwd
ls -l
ls -l /__w/primjs/primjs
- name: Download Source
uses: actions/[email protected]
- name: Install deps
shell: bash
run: |
source tools/envsetup.sh
hab sync . -f
- name: Build & Publish
run: |
ohpm config set publish_id ${{ secrets.HARMONY_PUBLISH_ID }}
cd harmony
echo ${{ secrets.HARMONY_PUBLISH_KEY }} > publish.key
ohpm config set key_path ./publish.key
ohpm run publish
2 changes: 1 addition & 1 deletion harmony/oh-package.json5
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dependencies": {
},
"scripts": {
"prepare": "./scripts/build.py --build_napi_v8 --modules primjs --publish_har --build_type Release --build_napi_adapter"
"publish": "./scripts/build.py --build_napi_v8 --modules primjs --publish_har --build_type Release --build_napi_adapter"
},
"devDependencies": {
}
Expand Down
2 changes: 1 addition & 1 deletion harmony/primjs/oh-package.json5
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"author": "lynx",
"license": "Apache-2.0",
"dependencies": {},
"version": "2.11.1-rc.1"
"version": "0.0.1-alpha.1"
}
Loading