Skip to content

Commit

Permalink
Fixed CI errors (#484)
Browse files Browse the repository at this point in the history
* Only really publish when tag does not contain `beta`
* Fixed javadoc path
  • Loading branch information
oxisto authored Jul 27, 2021
1 parent 623748a commit 179e881
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,24 +92,24 @@ jobs:
name: test
path: "**/build/reports/tests"
- name: JavaDoc
if: startsWith(github.ref, 'refs/tags/v')
if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'beta')
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build/docs/javadoc
FOLDER: cpg-library/build/docs/javadoc
- name: Publish
if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'beta')
run: |
export ORG_GRADLE_PROJECT_signingKey=`echo ${{ secrets.GPG_PRIVATE_KEY }} | base64 -d`
./gradlew -Dorg.gradle.internal.publish.checksums.insecure=true --parallel -Pversion=$VERSION build signMavenPublication publish
if: startsWith(github.ref, 'refs/tags/v')
env:
VERSION: ${{ steps.determine_version.outputs.version }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSWORD }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
- name: "Create Release"
if: startsWith(github.ref, 'refs/tags/v')
if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'beta')
id: create_release
uses: actions/create-release@latest
env:
Expand Down

0 comments on commit 179e881

Please sign in to comment.