Skip to content

Commit

Permalink
Prepare release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Scholz committed Oct 10, 2023
1 parent 378491a commit f44f4b9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
release:
types: [ published ]

jobs:
publish-release:
runs-on: ubuntu-latest
if: github.repository == 'SimonScholz/qr-code-with-logo' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 20

- uses: gradle/gradle-build-action@v2.9.0

- name: Publish Artifacts
run: ./gradlew publishAllPublicationsToMavenCentral --no-configuration-cache
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}

0 comments on commit f44f4b9

Please sign in to comment.