Skip to content

Commit

Permalink
Deploy snapshot on Apache Nexus (#893)
Browse files Browse the repository at this point in the history
  • Loading branch information
bchapuis authored Sep 8, 2024
1 parent 4c6252c commit e8014fc
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/deploy-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy snapshot

on:
push:
branches:
- main

jobs:
deploy-snapshot:
name: Deploy snapshot
runs-on: ubuntu-latest
if: "!startsWith(github.ref, 'refs/tags/v')"
steps:

- name: Checkout code
uses: actions/checkout@v4

- name: Set up Java 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
cache: maven
server-username: NEXUS_USER
server-password: NEXUS_PW
gpg-private-key: ${{ secrets.BAREMAPS_GPG_SECRET_KEY }}

- name: Set up GPG
shell: bash
run: |
echo "${{ secrets.BAREMAPS_GPG_SECRET_KEY }}" | gpg --batch --import
gpg --list-keys
env:
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}

- name: Publish snapshots on Apache Nexus
shell: bash
env:
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PW: ${{ secrets.NEXUS_PW }}
run: |
./mvnw deploy -DskipTests -Dmaven.javadoc.skip=true -B -V

0 comments on commit e8014fc

Please sign in to comment.