Skip to content

Add support for resolving catalogItemId via catalogItemSlug #82

Add support for resolving catalogItemId via catalogItemSlug

Add support for resolving catalogItemId via catalogItemSlug #82

Workflow file for this run

name: Build and Release Latest
on:
push:
branches: [ master ]
pull_request:
branches: [ master, develop ]
workflow_dispatch:
permissions:
contents: write
jobs:
build:
name: Build and Release Latest
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0 # Needed full history for tags
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'gradle'
- name: Grant execute permission for Gradle wrapper
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean build -x test --stacktrace --no-daemon
env:
NO_NEXUS: true
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: |
docker/*.jar
retention-days: 1
- name: Create or move latest tag
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -f latest
git push origin latest --force
- name: Create or update latest release
uses: softprops/action-gh-release@v2
with:
tag_name: latest
name: Latest build
body_path: CHANGELOG.md
prerelease: true
draft: false
files: docker/*.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}