diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..0d0fc0b --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,41 @@ +name: Release Baton + +on: + workflow_dispatch: + inputs: + releaseVersion: + description: "Release version" + required: true + developmentVersion: + description: "Next development version" + required: true + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + server-id: 'ossrh' + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg-passphrase: GPG_PASSPHRASE + - name: Release Baton + run: | + git config --local user.email "baton-noreply@technologybrewery.org" + git config --local user.name "Github Actions" + chmod +x release-baton.sh + ./release-baton.sh ${{ inputs.releaseVersion }} ${{ inputs.developmentVersion }} + env: + MAVEN_USERNAME: ${{ secrets.SONATYPE_CENTRAL_REPO_TOKEN_USER }} + MAVEN_PASSWORD: ${{ secrets.SONATYPE_CENTRAL_REPO_TOKEN_KEY }} + GPG_PASSPHRASE: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/pom.xml b/pom.xml index d47615a..7a34f89 100644 --- a/pom.xml +++ b/pom.xml @@ -41,12 +41,11 @@ - scm:git:ssh://git@github.com/TechnologyBrewery/baton.git - scm:git:ssh://git@github.com/TechnologyBrewery/baton.git + scm:git:https://github.com/TechnologyBrewery/baton.git + scm:git:https://github.com/TechnologyBrewery/baton.git https://github.com/TechnologyBrewery/baton/ HEAD -