Skip to content

Commit

Permalink
Merge pull request #340 from opendocument-app/upload-to-conan-repo
Browse files Browse the repository at this point in the history
Upload binaries to conan repo
  • Loading branch information
andiwand authored May 1, 2024
2 parents 8cc5db6 + 47bc962 commit 5e5b4f3
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/android_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,13 @@ jobs:

- name: conan config
run: conan config set general.revisions_enabled=1
- name: conan repo
run: conan remote add odr https://artifactory.opendocument.app/artifactory/api/conan/conan
- name: conan remote
run: |
conan remote clean
conan remote add odr https://artifactory.opendocument.app/artifactory/api/conan/conan
conan remote add conancenter https://center.conan.io
- name: conan login
run: conan user --remote odr --password ${{ secrets.ARTIFACTORY }} admin

- name: tweak conan profile for build machine
run: |
Expand All @@ -59,6 +64,9 @@ jobs:
- name: gradle
run: ./gradlew assembleDebug lintProDebug lintLiteDebug --stacktrace

- name: upload binaries to conan repo
run: conan upload "*" --remote odr --confirm --all --no-overwrite all

- name: upload apks
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -120,8 +128,13 @@ jobs:

- name: conan config
run: conan config set general.revisions_enabled=1
- name: conan repo
run: conan remote add odr https://artifactory.opendocument.app/artifactory/api/conan/conan
- name: conan remote
run: |
conan remote clean
conan remote add odr https://artifactory.opendocument.app/artifactory/api/conan/conan
conan remote add conancenter https://center.conan.io
- name: conan login
run: conan user --remote odr --password ${{ secrets.ARTIFACTORY }} admin

- name: tweak conan profile for build machine
run: |
Expand Down Expand Up @@ -179,6 +192,9 @@ jobs:
test ! -f sorry_but_tests_are_failing
- name: upload binaries to conan repo
run: conan upload "*" --remote odr --confirm --all --no-overwrite all

- name: upload test results
uses: actions/upload-artifact@v3
if: always()
Expand Down

0 comments on commit 5e5b4f3

Please sign in to comment.