Skip to content

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

.github/workflows/release-github.yml

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

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:
GITHUB_USERNAME: ${{ secrets.GHP_USERNAME }}
GITHUB_TOKEN: ${{ secrets.GHP_TOKEN }}
GITHUB_REPO: $${ secrets.GHP_REPO }}