Skip to content

Commit d1a60c7

Browse files
committed
CI: publish all SDKs to cloudsmith
1 parent 2b127d9 commit d1a60c7

File tree

2 files changed

+13
-48
lines changed

2 files changed

+13
-48
lines changed

.github/workflows/ci-build.yml

+8-11
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,16 @@ jobs:
6464
- name: zip SDK
6565
id: package
6666
run: |
67-
[[ $GITHUB_REF = refs/tags/* ]] && VERNAME=${GITHUB_REF##*/} || VERNAME="master2"
67+
[[ $GITHUB_REF = refs/tags/* ]] && VERNAME=${GITHUB_REF##*/} || VERNAME="master"
6868
echo "::set-output name=ver::${VERNAME}"
6969
cd build/OgreJNI && zip -qr ogre-sdk-android-${VERNAME}-arm64-v8a.zip *
70-
- uses: reznikmm/upload-bintray-action@v3
71-
with:
72-
sourcePath: build/OgreJNI/ogre-sdk-android-*-arm64-v8a.zip
73-
username: paroj
74-
apiKey: ${{ secrets.BINTRAY_API_KEY }}
75-
subject: ogrecave
76-
repository: ogre
77-
package: ogre-sdk-android
78-
version: ${{ steps.package.outputs.ver }}
79-
override: 1
70+
- name: upload artifact
71+
run: |
72+
test ! -n "$CLOUDSMITH_API_KEY" && exit 0
73+
pip3 install --upgrade cloudsmith-cli
74+
~/.local/bin/cloudsmith push raw ogrecave/ogre build/OgreJNI/ogre-sdk-android-*-arm64-v8a.zip --republish -k $CLOUDSMITH_API_KEY
75+
env:
76+
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
8077
macos:
8178
runs-on: macos-10.15
8279
steps:

appveyor.yml

+5-37
Original file line numberDiff line numberDiff line change
@@ -24,42 +24,10 @@ branches:
2424
- master
2525
- stable
2626
after_build:
27-
- IF "%APPVEYOR_REPO_TAG%" == "true" 7z a ogre-sdk-%APPVEYOR_REPO_TAG_NAME%-vc15-x64.zip ./build/sdk/*
28-
- IF NOT "%APPVEYOR_REPO_TAG%" == "true" 7z a ogre-sdk-master-vc15-x64.zip ./build/sdk/*
27+
- IF NOT "%APPVEYOR_REPO_TAG%" == "true" set APPVEYOR_REPO_TAG_NAME=master
28+
- 7z a ogre-sdk-%APPVEYOR_REPO_TAG_NAME%-vc15-x64.zip ./build/sdk/*
2929
- pip install --upgrade cloudsmith-cli
30-
- IF "%APPVEYOR_PULL_REQUEST_NUMBER%" == "" IF NOT "%APPVEYOR_REPO_TAG%" == "true" IF "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2017" cloudsmith push raw ogrecave/ogre ogre-sdk-master-vc15-x64.zip --republish -k %CS_APIKEY%
30+
- IF "%APPVEYOR_PULL_REQUEST_NUMBER%" == "" IF "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2017" cloudsmith push raw ogrecave/ogre ogre-sdk-master-vc15-x64.zip --republish -k %CS_APIKEY%
3131
artifacts:
32-
- path: build/sdk
33-
name: ogre-sdk-master2-vc15-x64
34-
- path: ogre-sdk-$(APPVEYOR_REPO_TAG_NAME)-vc15-x64.zip
35-
name: ogre-sdk-$(APPVEYOR_REPO_TAG_NAME)-vc15-x64
36-
deploy:
37-
- provider: BinTray
38-
username: paroj
39-
api_key:
40-
secure: 4nFEwKApbHUf7UajsDt6Z7QOl3zzgEz6YbWGSGx5AiPxozWEQHEyGc6c9xE7utWE
41-
subject: ogrecave
42-
repo: ogre
43-
package: ogre-sdk-vc15-x64
44-
artifact: ogre-sdk-master2-vc15-x64
45-
publish: true
46-
override: true
47-
version: master2
48-
on:
49-
branch: master
50-
APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
51-
APPVEYOR_REPO_TAG: false
52-
- provider: BinTray
53-
username: paroj
54-
api_key:
55-
secure: 4nFEwKApbHUf7UajsDt6Z7QOl3zzgEz6YbWGSGx5AiPxozWEQHEyGc6c9xE7utWE
56-
subject: ogrecave
57-
repo: ogre
58-
package: ogre-sdk-vc15-x64
59-
artifact: ogre-sdk-$(APPVEYOR_REPO_TAG_NAME)-vc15-x64
60-
publish: true
61-
override: true
62-
version: $(APPVEYOR_REPO_TAG_NAME)
63-
on:
64-
APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
65-
APPVEYOR_REPO_TAG: true
32+
- path: ogre-sdk-master-vc15-x64.zip
33+
name: ogre-sdk-master-vc15-x64

0 commit comments

Comments
 (0)