Skip to content

Release to SNAPSHOTS Maven Central #708

Release to SNAPSHOTS Maven Central

Release to SNAPSHOTS Maven Central #708

Workflow file for this run

name: Release to SNAPSHOTS Maven Central
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * *' # Every day at 2am
env:
GO_VERSION: 1.25
jobs:
snapshots:
name: Snapshots
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Free up disk space
run: |
sudo apt-get purge -y \
'aspnetcore.*' \
'dotnet.*' \
'firefox.*' \
'google-chrome.*' \
'mysql.*' \
'php.*' \
'mono-.*' \
'libmono.*' \
'azure-cli' \
'powershell' \
'^llvm-.*' \
'^clang-.*'
sudo apt-get autoremove -y
sudo apt-get clean
# Remove Android SDK
sudo rm -rf /usr/local/lib/android 2>/dev/null || true
# Remove .NET
sudo rm -rf /usr/share/dotnet 2>/dev/null || true
df -h
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
- name: Setup Java 8
uses: actions/setup-java@v5
with:
java-version: '8'
distribution: 'temurin'
server-id: central-portal
server-username: MAVEN_CENTRAL_USERNAME
server-password: MAVEN_CENTRAL_PASSWORD
gpg-private-key: ${{ secrets.SIGNINGKEY }}
gpg-passphrase: SIGNINGPASSWORD
- name: Build
run: make build-all
- name: Maven SNAPSHOT Release
run: mvn -Prelease clean deploy
env:
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
SIGNINGPASSWORD: ${{ secrets.SIGNINGPASSWORD }}