Skip to content

Commit

Permalink
wip: check snapshot release
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Laprun <[email protected]>
  • Loading branch information
metacosm committed Oct 30, 2024
1 parent 4f2836f commit 1a53689
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/deploy-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Deploy Snapshot

on:
workflow_dispatch:
inputs:
branch:
type: string
required: false
default: 'main'
version:
type: string
required: false

workflow_call:
inputs:
branch:
type: string
required: false
default: 'main'
version:
type: string
required: false

defaults:
run:
shell: bash

permissions:
attestations: write
id-token: write
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
prepare-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: "${{inputs.branch}}"

- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
cache: 'maven'

- name: Retrieve and export project version
run: |
version=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)
echo "Project version: ${version}"
echo "version=${version}" >> $GITHUB_OUTPUT
- name: Override project version if requested
if: ${{ inputs.version != '' }}
run: |
echo "Version override requested: ${{inputs.version}}"
echo "version=${{inputs.version}}" >> $GITHUB_OUTPUT
deploy-snapshot:
name: Deploy Snapshots
uses: quarkiverse/.github/.github/workflows/perform-release.yml@main
secrets: inherit
needs:
- prepare-version
with:
ref: main
version: ${{needs.prepare-version.outputs.version}}

0 comments on commit 1a53689

Please sign in to comment.