Skip to content

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

.github/workflows/release-github.yml

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

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: Setup LXD
uses: canonical/setup-lxd@main
with:
channel: 5.21/candidate
- name: Install rockcraft
run: |
sudo snap install rockcraft --classic
- name: Publish to Github Packages
id: deploy
run: |
./gradlew publish -i
shell: bash
env:
GHP_USERNAME: ${{ secrets.GHP_USERNAME }}
GHP_TOKEN: ${{ secrets.GHP_TOKEN }}
GHP_REPO: $${{ secrets.GHP_REPO }}