Skip to content

Merge pull request #359 from awslabs/profile-supplier-reload #9

Merge pull request #359 from awslabs/profile-supplier-reload

Merge pull request #359 from awslabs/profile-supplier-reload #9

Workflow file for this run

name: Release
permissions:
contents: write
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
tag:
required: true
type: string
description: Use this existing Git tag to create the release
jobs:
release:
name: Create Release
timeout-minutes: 10
strategy:
matrix:
os: [ ubuntu-22.04 ]
java: [ "11" ]
runs-on: ${{ matrix.os }}
env:
TAG: ${{ github.event.inputs.tag }}
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Get short TAG
if: ${{ github.event_name != 'workflow_dispatch' }}
run: |
echo "Retrieving tag from Github ref"
echo "TAG=$(basename "${{ github.ref }}")" >> $GITHUB_ENV
- name: Build JAR artifacts
run: mvn --batch-mode --no-transfer-progress --errors --update-snapshots clean package -Drevision=${TAG}
- name: Create Github Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "Creating release from tag ${TAG}"
gh release create ${TAG} --generate-notes LICENSE NOTICE THIRD-PARTY-LICENSES README.md target/*.jar target/components/packages/*.zip