Skip to content

New Release

New Release #66

Workflow file for this run

# This workflow creates a new release that can be triggered directly from github.
name: New Release
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
# Service containers to run with `runner-job`
services:
# Label used to access the service container
activemq:
image: quay.io/artemiscloud/activemq-artemis-broker:latest
ports:
- 61616:61616
env:
AMQ_USER: admin
AMQ_PASSWORD: admin
postgres:
image: postgres
ports:
# Opens tcp port 5432 on the host and service container
- 5432:5432
# setup default user for testing
env:
POSTGRES_PASSWORD: admin
POSTGRES_USER: postgres
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
server-id: github
cache: maven
- name: Configure Git user
run: |
git config user.email "actions@github.com"
git config user.name "GitHub Actions"
- name: Create new release
run: mvn -B -P '!dockerDeveloperTags' release:prepare release:perform
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}