Skip to content

Commit b649e76

Browse files
gongfeng98RovicnowYoyi
authored andcommitted
[Infra] The SDK supports publishing as a ZIP package
1 parent b04200f commit b649e76

File tree

4 files changed

+26
-10
lines changed

4 files changed

+26
-10
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,21 @@ jobs:
3535
- name: Run file type check
3636
run: |
3737
source tools/envsetup.sh
38-
python3 tools_shared/git_lynx.py check --checkers file-type
38+
git lynx check --checkers file-type
3939
- name: Run java-lint check
4040
run: |
4141
source tools/envsetup.sh
42-
python3 tools_shared/git_lynx.py check --checkers java-lint
42+
git lynx check --checkers java-lint
4343
- name: Run android-check-style check
4444
run: |
4545
source tools/envsetup.sh
46-
python3 tools_shared/git_lynx.py check --checkers android-check-style
46+
git lynx check --checkers android-check-style
4747
- name: Run commit-message check
4848
run: |
4949
source tools/envsetup.sh
50-
python3 tools_shared/git_lynx.py check --checkers commit-message
50+
git lynx check --checkers commit-message
5151
- name: Run coding-style check
5252
run: |
53-
cd tools_shared
54-
./hab sync -f .
55-
source envsetup.sh
56-
cd ..
5753
source tools/envsetup.sh
5854
git lynx check --checkers coding-style
5955

.github/workflows/publish-pod.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,29 @@ jobs:
2020
version=$(echo ${{ github.ref }} | awk -F "/" '{print $3}')
2121
echo "VERSION=${version%-ios}" >> $GITHUB_OUTPUT;
2222
id: get_tag
23+
- name: Prepare cocoapods publish source
24+
env:
25+
VERSION: ${{ steps.get_tag.outputs.VERSION }}
26+
run: |-
27+
source tools/envsetup.sh
28+
tools/hab sync .
29+
python3 -m pip install requests
30+
python3 -m pip install PyYAML
31+
export POD_VERSION=$VERSION && export PACKAGE_ENV=prod && geniospkg --repo DebugRouter --tag ${{ env.VERSION }} --public_repo
32+
- name: Push iOS SDK to release
33+
env:
34+
VERSION: ${{ steps.get_tag.outputs.VERSION }}
35+
uses: ncipollo/release-action@v1
36+
with:
37+
tag: ${{ env.VERSION }}
38+
token: ${{ secrets.GITHUB_TOKEN }}
39+
artifacts: "${{ github.workspace }}/*.zip"
40+
replacesArtifacts: true
41+
allowUpdates: true
2342
- name: Push to Specs Repo
2443
env:
2544
COCOAPODS_TRUNK_TOKEN: ${{ secrets.REPO_DEBUG_ROUTER_COCOAPODS_TRUNK_TOKEN }}
2645
POD_VERSION: ${{ steps.get_tag.outputs.VERSION }}
2746
run: |-
2847
pod repo add-cdn trunk https://cdn.cocoapods.org/
29-
COCOAPODS_TRUNK_TOKEN=$COCOAPODS_TRUNK_TOKEN POD_VERSION=$POD_VERSION pod trunk push DebugRouter.podspec --skip-import-validation --allow-warnings
48+
COCOAPODS_TRUNK_TOKEN=$COCOAPODS_TRUNK_TOKEN pod trunk push DebugRouter.podspec.json --skip-import-validation --allow-warnings

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ deps = {
9797
"tools_shared": {
9898
"type": "solution",
9999
"url": "https://github.com/lynx-family/tools-shared.git",
100-
"commit": "271dba582cab4409de488da3fa6e6761fb2a1cdd",
100+
"commit": "0ad5be5770bb7d00bcd958236823343941564a71",
101101
'deps_file': 'dependencies/DEPS',
102102
"ignore_in_git": True,
103103
},

tools/envsetup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ lynx_envsetup() {
2121
export DEBUGROUTER_DIR="$(dirname $TOOLS_ABSOLUTE_PATH)"
2222
export BUILDTOOLS_DIR="${DEBUGROUTER_DIR}/buildtools"
2323
export PATH="${BUILDTOOLS_DIR}/llvm/bin:${BUILDTOOLS_DIR}/ninja:${TOOLS_ABSOLUTE_PATH}/gn_tools:$PATH"
24+
export PATH="tools_shared:$PATH"
2425
}
2526

2627
function android_env_setup() {

0 commit comments

Comments
 (0)