Skip to content

Commit

Permalink
Add Release workflow (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvest committed Jun 10, 2024
2 parents f480731 + b2da8e4 commit 3dbf1bc
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
java-version: [11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4.1.6
- name: Set up Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4.2.1
with:
java-version: ${{ matrix.java-version }}
distribution: 'zulu'
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release
on:
workflow_dispatch:

jobs:
Release:
runs-on: ubuntu-latest
steps:
- name: Check out project
uses: actions/[email protected]

# Configure Java
- uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '11'
server-id: 'ossrh'
server-username: ${{ secrets.SONATYPE_USERNAME }}
server-password: ${{ secrets.SONATYPE_PASSWORD }}
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}

- name: Configure Git
run: |
git config user.name "Release action on behalf of ${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- name: Verifying build
run: ./mvnw clean deploy -P release

- name: Push pom updates and tags
run: |
git push --tags

0 comments on commit 3dbf1bc

Please sign in to comment.