Skip to content

Commit

Permalink
sign archives befor publishing on github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
gciatto committed Oct 27, 2020
1 parent cd0fe51 commit a242847
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,6 @@ jobs:
runs-on: ubuntu-latest
needs:
- test
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
steps:
# - *checkout_code
- name: Checkout code
Expand Down Expand Up @@ -198,15 +195,6 @@ jobs:
- name: Generate Multi-Module Doc
run: gradle ${{ env.gradle-options }} dokkaHtmlMultiModule --parallel

# - name: Archive Doc
# uses: actions/upload-artifact@v2
# with:
# name: api-reference
# path: build/dokka/htmlMultiModule

- name: Sign Archives
run: gradle ${{ env.gradle-options }} signAllPublications --parallel

deploy-maven-github:
runs-on: ubuntu-latest
needs:
Expand Down Expand Up @@ -250,6 +238,9 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-${{ github.sha }}
- name: Sign Archives
run: gradle ${{ env.gradle-options }} signAllPublications --parallel

- name: Publish on GitHub Maven Repo
run: gradle ${{ env.gradle-options }} publishAllPublicationsToMavenRepository --parallel || gradle ${{ env.gradle-options }} publishAllPublicationsToMavenRepository --parallel
env:
Expand Down Expand Up @@ -300,6 +291,9 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-${{ github.sha }}
- name: Sign Archives
run: gradle ${{ env.gradle-options }} signAllPublications --parallel

- name: Publish on Bintray Maven Repo
run: gradle ${{ env.gradle-options }} publishAllToBintray --parallel || gradle ${{ env.gradle-options }} publishAllToBintray --parallel
env:
Expand Down Expand Up @@ -350,6 +344,9 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-${{ github.sha }}
- name: Sign Archives
run: gradle ${{ env.gradle-options }} signAllPublications --parallel

- name: Publish on Maven Central Repo
run: gradle ${{ env.gradle-options }} publishAllPublicationsToMavenRepository --parallel || gradle ${{ env.gradle-options }} publishAllPublicationsToMavenRepository --parallel
# if: contains(github.ref, 'master')
Expand Down

0 comments on commit a242847

Please sign in to comment.