Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] publish snapshots with every commit to main #16

Merged
merged 2 commits into from
Jan 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/snapshot-releases.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Snapshot Releases

# Only run on pushes to main:
# Replace with 'on: [push]' if you need to run tests on your PR
on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
# Modules specify the oldest java version that they support:
# even if we build with version 21, produced jars should be compatible with
# JVMs running the version specified in each module's maven.compiler.target property
java-version: '21'
distribution: 'temurin'
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD
- name: Publish package
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
# Notes:
# - tests already run in a separate action
run: mvn --batch-mode deploy -DskipTests