Skip to content

Commit e60183f

Browse files
committed
[Infra] For 3.7.1-alpha.1 publishing
1 parent e30500d commit e60183f

1 file changed

Lines changed: 1 addition & 216 deletions

File tree

.github/workflows/publish-release.yml

Lines changed: 1 addition & 216 deletions
Original file line numberDiff line numberDiff line change
@@ -39,135 +39,6 @@ jobs:
3939
exit 1
4040
fi
4141
42-
android-explorer-build:
43-
timeout-minutes: 60
44-
runs-on: lynx-ubuntu-22.04-large
45-
needs: get-version
46-
steps:
47-
- name: Download Source
48-
uses: actions/checkout@v4.2.2
49-
with:
50-
path: lynx
51-
ref: ${{ github.event.inputs.commitId || github.ref }}
52-
fetch-depth: 0
53-
- name: Build Explorer App
54-
uses: ./lynx/.github/actions/android-explorer-build
55-
with:
56-
abi-list: armeabi-v7a,x86,x86_64,arm64-v8a
57-
- name: push to release
58-
uses: ncipollo/release-action@v1
59-
with:
60-
tag: ${{ needs.get-version.outputs.version }}
61-
token: ${{ secrets.GITHUB_TOKEN }}
62-
artifacts: '${{ github.workspace }}/lynx/explorer/android/lynx_explorer/build/outputs/apk/noasan/release/LynxExplorer-noasan-release.apk'
63-
allowUpdates: true
64-
body: ''
65-
66-
ios-explorer-build:
67-
timeout-minutes: 60
68-
runs-on: lynx-darwin-14-medium
69-
needs: get-version
70-
strategy:
71-
matrix:
72-
arch: [arm64, x86_64]
73-
steps:
74-
- name: Download Source
75-
uses: actions/checkout@v4.2.2
76-
with:
77-
path: lynx
78-
ref: ${{ github.event.inputs.commitId || github.ref }}
79-
fetch-depth: 0
80-
- name: Build Explorer App
81-
uses: ./lynx/.github/actions/ios-explorer-build
82-
with:
83-
build-arch: ${{ matrix.arch }}
84-
- name: push explorer to release
85-
uses: ncipollo/release-action@v1
86-
with:
87-
tag: ${{ needs.get-version.outputs.version }}
88-
token: ${{ secrets.GITHUB_TOKEN }}
89-
artifacts: '${{ github.workspace }}/lynx/LynxExplorer-${{ matrix.arch }}.app.tar.gz'
90-
allowUpdates: true
91-
body: ''
92-
93-
harmony-explorer-build:
94-
runs-on: lynx-custom-container
95-
container:
96-
image: ghcr.io/lynx-family/ubuntu24.04-harmony@sha256:bf493c3710de3c44bfa84caf402c0727b9310c42497f6e52580ad441ea640ef1
97-
credentials:
98-
username: lynx-family
99-
password: ${{ secrets.GITHUB_TOKEN }}
100-
needs: get-version
101-
defaults:
102-
run:
103-
working-directory: ${{ github.workspace }}
104-
shell: bash
105-
steps:
106-
- name: Download Source
107-
uses: actions/checkout@v4.2.2
108-
with:
109-
path: lynx
110-
ref: ${{ github.event.inputs.commitId || github.ref }}
111-
fetch-depth: 0
112-
- name: Build Explorer App
113-
uses: ./lynx/.github/actions/harmony-explorer-build
114-
- name: push explorer to release
115-
uses: ncipollo/release-action@v1
116-
with:
117-
tag: ${{ needs.get-version.outputs.version }}
118-
token: ${{ secrets.GITHUB_TOKEN }}
119-
artifacts: '${{ github.workspace }}/lynx/explorer/harmony/lynx_explorer/build/default/outputs/default/lynx_explorer-default-unsigned.hap'
120-
allowUpdates: true
121-
body: ''
122-
123-
android-sdk-release:
124-
runs-on: ubuntu-22.04
125-
needs: get-version
126-
timeout-minutes: 240
127-
steps:
128-
- name: Download Source
129-
uses: actions/checkout@v4.2.2
130-
with:
131-
path: lynx
132-
ref: ${{ github.event.inputs.commitId || github.ref }}
133-
fetch-depth: 0
134-
- name: Free up disk space
135-
uses: ./lynx/.github/actions/free-android-disk
136-
- name: Python Setup
137-
uses: actions/setup-python@v5
138-
with:
139-
python-version: '3.13'
140-
- name: Setup Android environment
141-
uses: ./lynx/.github/actions/setup-android-env
142-
- name: Install Common Dependencies
143-
uses: ./lynx/.github/actions/common-deps
144-
with:
145-
cache-backend: 'github'
146-
- name: Android SDK Release
147-
uses: ./lynx/.github/actions/android-sdk-release
148-
with:
149-
version: ${{ needs.get-version.outputs.version }}
150-
signingKeyId: ${{ secrets.SIGNING_KEY_ID }}
151-
signingPassword: ${{ secrets.SIGNING_PASSWORD }}
152-
signingSecretKey: ${{ secrets.SIGNING_SECRET_KEY }}
153-
abiList: 'armeabi-v7a,x86,x86_64,arm64-v8a'
154-
- name: Package maven artifacts
155-
run: |-
156-
cd $GITHUB_WORKSPACE/lynx
157-
pushd platform/android
158-
./gradlew zipArtifacts -Pversion=${{ needs.get-version.outputs.version }} getArtifactList
159-
popd
160-
pushd platform/android/build
161-
artifact_list=$(<artifact-list)
162-
echo "::set-output name=artifact_list::$artifact_list"
163-
popd
164-
id: build_artifact
165-
- name: Publish artifact to maven
166-
uses: lynx-infra/maven-publish-action@53b4da2f23f9cfc4e905b135eda2724fcf5a0f0e
167-
with:
168-
portal_api_token: ${{ secrets.PORTAL_API_TOKEN }}
169-
artifact_path_list: ${{ steps.build_artifact.outputs.artifact_list }}
170-
17142
ios-sdk-publish:
17243
timeout-minutes: 60
17344
runs-on: macos-14
@@ -202,90 +73,4 @@ jobs:
20273
tag: ${{ needs.get-version.outputs.version }}
20374
cocoapods_trunk_token: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
20475
github_token: ${{ secrets.GITHUB_TOKEN }}
205-
component: all
206-
- name: Publish iOS dev SDK
207-
uses: ./lynx/.github/actions/ios-sdk-publish
208-
env:
209-
LYNX_ENABLE_RECORDER: 1
210-
with:
211-
version: ${{ needs.get-version.outputs.version }}-dev
212-
tag: ${{ needs.get-version.outputs.version }}
213-
cocoapods_trunk_token: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
214-
github_token: ${{ secrets.GITHUB_TOKEN }}
215-
component: all
216-
217-
harmony-sdk-publish:
218-
name: Publish Harmony SDK (${{ matrix.label }})
219-
runs-on: lynx-custom-container
220-
container:
221-
image: ghcr.io/lynx-family/ubuntu24.04-harmony@sha256:25913874dad0557526b44f9c9ab30b9873080009db85bb569d718d2bb5f0e074
222-
credentials:
223-
username: lynx-family
224-
password: ${{ secrets.GITHUB_TOKEN }}
225-
defaults:
226-
run:
227-
shell: bash
228-
needs: get-version
229-
strategy:
230-
matrix:
231-
include:
232-
- version_suffix: ''
233-
modules: 'default'
234-
build_param: ''
235-
label: 'formal'
236-
- version_suffix: '-dev'
237-
modules: 'lynx lynx_devtool lynx_base'
238-
build_param: '--dev'
239-
label: 'dev'
240-
steps:
241-
- name: Install Rust toolchain
242-
uses: actions-rs/toolchain@v1
243-
with:
244-
toolchain: stable
245-
profile: minimal
246-
override: true
247-
- name: Install git-cliff
248-
run: |
249-
cargo install git-cliff --locked
250-
git-cliff --version
251-
- name: Download Source
252-
uses: actions/checkout@v4.2.2
253-
with:
254-
path: lynx
255-
fetch-depth: 0
256-
fetch-tags: true
257-
ref: ${{ github.event.inputs.commitId || github.ref }}
258-
- name: Get latest tag
259-
id: get-latest-tag
260-
uses: ./lynx/.github/actions/get-latest-tag
261-
with:
262-
current-tag: ${{ needs.get-version.outputs.version }}
263-
- name: Install Common Dependencies
264-
uses: ./lynx/.github/actions/common-deps
265-
with:
266-
cache-key-prefix: '-container'
267-
- name: Generate Change Log
268-
run: |
269-
cd $GITHUB_WORKSPACE/lynx
270-
source tools/envsetup.sh
271-
COMMIT_ID=$(git rev-list -n 1 ${{ steps.get-latest-tag.outputs.latest-tag }})
272-
python3 explorer/harmony/script/generate_changelog.py --version ${{ needs.get-version.outputs.version }}${{ matrix.version_suffix }} --modules ${{ matrix.modules }} --base_commit $COMMIT_ID
273-
- name: Build Harmony SDK
274-
run: |
275-
cd $GITHUB_WORKSPACE/lynx
276-
source tools/envsetup.sh
277-
pushd platform/harmony && ohpm install && popd
278-
pushd explorer/harmony && ohpm install && popd
279-
python3 explorer/harmony/script/build.py ${{ matrix.build_param }} --build_lynx_core --build_har --modules ${{ matrix.modules }} --override_version ${{ needs.get-version.outputs.version }}${{ matrix.version_suffix }}
280-
- name: Publish Harmony SDK
281-
run: |
282-
cd $GITHUB_WORKSPACE/lynx
283-
source tools/envsetup.sh
284-
export PUBLISH_KEY_PASSPHRASE=${{ secrets.HARMONY_PUBLISH_KEY_PASSPHRASE }}
285-
cat << EOF > publish_key
286-
${{ secrets.HARMONY_PUBLISH_KEY }}
287-
EOF
288-
ohpm config set publish_registry https://ohpm.openharmony.cn/ohpm
289-
export PUBLISH_ID=${{ secrets.HARMONY_PUBLISH_ID }}
290-
export KEY_PATH=$GITHUB_WORKSPACE/lynx/publish_key
291-
python3 explorer/harmony/script/publish.py --modules ${{ matrix.modules }} --version ${{ needs.get-version.outputs.version }}${{ matrix.version_suffix }}
76+
component: Lynx

0 commit comments

Comments
 (0)