mirror of
https://github.com/catppuccin/java.git
synced 2026-01-09 05:21:27 +08:00
* fix(palette): incorrect rgb channel ordering * tests(palette): remove "built-in" tests * ci(deploy): switch to token based auth
44 lines
1.1 KiB
YAML
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
|