java/.github/workflows/deploy.yml
Hammy b0d472df3b
fix(palette): incorrect rgb channel ordering (#32)
* fix(palette): incorrect rgb channel ordering

* tests(palette): remove "built-in" tests

* ci(deploy): switch to token based auth
2025-02-22 23:19:12 +00: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_TOKEN
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: ${{ secrets.OSSRH_USERNAME }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
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