Skip to content

Release

Release #64

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
branch:
description: Release branch (needed for major and minor releases)
required: true
version:
description: Release version
required: true
deploy-skip:
description: Skip artifacts maven repository deployment (maven.deploy.skip)
required: true
default: false
type: boolean
env:
mvn-releases-url: https://s01.oss.sonatype.org/service/local/repositories/releases/content/
mvn-snapshots-url: https://s01.oss.sonatype.org/content/repositories/snapshots/
concurrency: rel-${{ github.ref }}
defaults:
run:
shell: bash
jobs:
repo-prep:
name: Prepare repository
runs-on: ubuntu-latest
outputs:
mvn-releases-url: ${{ env.mvn-releases-url }}
mvn-snapshots-url: ${{ env.mvn-snapshots-url }}
steps:
- name: Show-inputs
run: |
echo "Version: ${{ inputs.version }} " >> $GITHUB_STEP_SUMMARY
echo "Release branch: ${{ inputs.branch }} " >> $GITHUB_STEP_SUMMARY
echo "Workflow branch: ${{ github.ref_name }} " >> $GITHUB_STEP_SUMMARY
echo "Deploy skip: ${{ inputs.deploy-skip }} " >> $GITHUB_STEP_SUMMARY
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
- name: Maven environment setup
run: |
cat $GITHUB_WORKSPACE/.github/env/release-env | sed -r '/^\s*$/d' >> $GITHUB_ENV
- name: Create version change commit
run: |
./set-version.sh ${{ inputs.version }}
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git commit -a -m "Set version to ${{ inputs.version }}"
- name: Create tag commit
run: git tag --force ${{ inputs.version }}
- name: Push tag with version changes
run: git push --force origin refs/tags/${{ inputs.version }}
keycloak-client:
name: Keycloak Client
needs: repo-prep
uses: ./.github/workflows/x-keycloak-client.yml
with:
mvn-url: ${{ env.mvn-releases-url }}

Check failure on line 66 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 66, Col: 16): Unrecognized named-value: 'env'. Located at position 1 within expression: env.mvn-releases-url
tag: ${{ inputs.version }}
deploy-skip: ${{ inputs.deploy-skip }}
secrets:
MVN_USERNAME: ${{ secrets.MVN_USERNAME }}
MVN_TOKEN: ${{ secrets.MVN_TOKEN }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}