Skip to content

Commit

Permalink
feat(cd): add GH workflow to add built .hpi artifact as release asset
Browse files Browse the repository at this point in the history
  • Loading branch information
hainenber committed Dec 14, 2024
1 parent c62bef5 commit 893ed24
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
_extends: .github
tag-template: $NEXT_MINOR_VERSION
name-template: $NEXT_MINOR_VERSION
categories:
- title: '🚀 Features'
labels:
- 'feature'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- title: '🧰 Maintenance'
labels:
- 'chore'
template: |
## What's Changed
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/add-hpi-artifact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:
tags:
- "*.*.*"

jobs:
add-hpi-artifact:
permissions:
contents: write
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Run unit test
run: ./mvnw test

- name: Build .hpi distribution for Multipass Cloud Plugin
run: ./mvnw compile && ./mvnw hpi:hpi

- name: Add .hpi artifact to release
uses: softprops/action-gh-release@v2
with:
files: |
target/multipass-cloud.hpi
1 change: 0 additions & 1 deletion .github/workflows/jenkins-security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ name: Jenkins Security Scan
on:
push:
branches:
- "master"
- "main"
pull_request:
types: [opened, synchronize, reopened]
Expand Down

0 comments on commit 893ed24

Please sign in to comment.