Skip to content

.github/workflows/release-github.yml #13

.github/workflows/release-github.yml

.github/workflows/release-github.yml #13

name: Deploy to github
on:
workflow_dispatch:
jobs:
build:
name: release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 5
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
server-id: central
server-username: ${{ secrets.GITHUB_USERNAME }}
server-password: MAVEN_CENTRAL_TOKEN
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Publish to Github Packages
id: deploy
run: |
./gradlew publish -i
shell: bash
env:
GHP_USERNAME: ${{ secrets.GHP_USERNAME }}
GHP_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GHP_REPO: $${{ secrets.GHP_REPO }}