java/.github/workflows/deploy.yml
nullishamy 36240ecb18
feat!: auto-generate from palette.json (#3)
This commit rewrites the library to be generated from
the palette.json which acts as a source of truth.

The project is now a multi-module maven project, with
the "processing" module responsible for generating the
code used in the "palette" module. Both modules will be
published to Maven Central and available as separate
JARs.

Co-authored-by: sgoudham <sgoudham@gmail.com>
2024-05-18 03:17:27 +01:00

44 lines
1.1 KiB
YAML

name: Deploy
on:
push:
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '8'
cache: 'maven'
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Build
run: mvn -B -DskipTests clean package
- name: Deploy
env:
OSSRH_USERNAME: catppuccin
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
run: mvn -B -DskipTests deploy
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "palette/target/*.jar,processing/target/*.jar"
generateReleaseNotes: true
makeLatest: true
draft: true