Skip to content

Commit

Permalink
Move publishing to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgrefer committed Apr 17, 2021
1 parent 6fdfcbd commit ee527c4
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 24 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish Release

on:
release:
types: [ created ]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'adopt'
- run: gpg --quiet --batch --yes --decrypt --passphrase="$PASS" --output=secring.gpg secring.gpg.gpg
env:
PASS: ${{ secrets.FREEFAIR_SECRING_PASS }}
- name: Publish package
run: ./gradlew --no-parallel publishToSonatype uploadDocumentation closeAndReleaseRepository -Psigning.secretKeyRingFile=$GITHUB_WORKSPACE/secring.gpg -Psigning.password=$SIGNING_PASSWORD -Psigning.keyId=$SIGNING_KEY_ID
env:
ORG_GRADLE_PROJECT_ossrhUser: ${{ secrets.OSSRH_USERNAME }}
ORG_GRADLE_PROJECT_ossrhPass: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.FREEFAIR_SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.FREEFAIR_SIGNING_PASSWORD }}
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}
ORG_GRADLE_PROJECT_freefairDocsUser: ${{ secrets.FREEFAIR_DOCS_USER }}
ORG_GRADLE_PROJECT_freefairDocsPass: ${{ secrets.FREEFAIR_DOCS_PASS }}
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

Binary file removed secring.gpg.enc
Binary file not shown.
Binary file added secring.gpg.gpg
Binary file not shown.

0 comments on commit ee527c4

Please sign in to comment.