Skip to content

Commit

Permalink
Do release on master push (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Baltoli authored Mar 5, 2024
1 parent 5198600 commit 0603496
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 'Release'
on:
push:
branches:
- master

jobs:
release:
name: 'Publish Release'
runs-on: ubuntu-latest
steps:
- name: 'Check out code'
uses: actions/checkout@v4

- name: Set up Java for publishing to GitHub Maven Packages
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'
overwrite-settings: true
server-id: runtime.verification
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD

- name: 'Push Maven Packages'
env:
MAVEN_USERNAME: [email protected]
MAVEN_PASSWORD: ${{ secrets.CLOUDREPO_PASSWORD }}
run: mvn deploy --batch-mode -U
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive

- name: 'Set up Java 17'
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17

- name: 'Install Maven'
run: sudo apt-get update && sudo apt-get install --yes maven

Expand Down

0 comments on commit 0603496

Please sign in to comment.