Skip to content

Prepare publishing

Prepare publishing #1

Workflow file for this run

name: mcstatuskt-publish
on:
push:
branches: [ main ]
jobs:
publish:
if: ${{ github.repository == 't895/mcstatuskt' }}
runs-on: macos-latest
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Give execution permissions to the gradle wrapper
run: chmod +x ./gradlew
- name: Create secrets file
run: base64 --decode ${{ secrets.SIGNING_SECRET_KEYRING_BASE64 }} > keyring.gpg
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build and publish
run: ./gradlew :shared:publishAllPublicationsToSonatypeRepository