Skip to content

Commit

Permalink
Add workflow to publish action to GitHub repo
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Mar 22, 2024
1 parent 1e080e0 commit 495e312
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish-action-artifact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish action artifact to GitHub project's Maven repository

on:
workflow_dispatch:
push:
branches:
- 'main'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
build-and-push-action:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

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

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
cache: maven

- name: Build and publish action to Maven repository
shell: bash
run: |
./mvnw -B clean deploy -Dquarkus.package.type=uber-jar -Dquarkus.package.add-runner-suffix=false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 495e312

Please sign in to comment.