Skip to content

Merge pull request #3 from vpa1977/fix_release_pipeline #2

Merge pull request #3 from vpa1977/fix_release_pipeline

Merge pull request #3 from vpa1977/fix_release_pipeline #2

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
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: '21'
- name: Setup LXD
uses: canonical/setup-lxd@main
with:
channel: 5.21/candidate
- name: Build and verify project
run: |
sudo snap install rockcraft --classic
./gradlew clean build -i
- name: Publish to Gradle plugin repository
id: deploy
run: |
./gradlew publishPlugins -Pgradle.publish.key=$PUBLISH_KEY -Pgradle.publish.secret=$PUBLISH_SECRET
shell: bash
env:
PUBLISH_KEY: ${{ secrets.PUBLISH_KEY }}
PUBLISH_SECRET: ${{ secrets.PUBLISH_SECRET }}
- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true