Skip to content

Commit

Permalink
Merge pull request #14 from TechnologyBrewery/release_1_0_0
Browse files Browse the repository at this point in the history
Added release workflow
  • Loading branch information
jacksondelametter authored Apr 15, 2024
2 parents 252fbd0 + 4c8b269 commit f7083fd
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 3 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
5 changes: 2 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,11 @@
</developers>

<scm>
<connection>scm:git:ssh://git@github.com/TechnologyBrewery/baton.git</connection>
<developerConnection>scm:git:ssh://git@github.com/TechnologyBrewery/baton.git</developerConnection>
<connection>scm:git:https://github.com/TechnologyBrewery/baton.git</connection>
<developerConnection>scm:git:https://github.com/TechnologyBrewery/baton.git</developerConnection>
<url>https://github.com/TechnologyBrewery/baton/</url>
<tag>HEAD</tag>
</scm>

<properties>
</properties>

Expand Down

0 comments on commit f7083fd

Please sign in to comment.