Skip to content

Fix: Configure Axion Release plugin to accept 'v' prefix in tags #2

Fix: Configure Axion Release plugin to accept 'v' prefix in tags

Fix: Configure Axion Release plugin to accept 'v' prefix in tags #2

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: Build with Gradle
run: ./gradlew clean build
- name: Build distribution packages
run: ./gradlew buildRpm buildDeb shadowDistZip shadowDistTar
- name: Get version from tag
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Create Release
uses: softprops/action-gh-release@v1
with:
name: Release ${{ steps.get_version.outputs.VERSION }}
draft: false
prerelease: false
generate_release_notes: true
files: |
build/distributions/rundeck-plugin-bootstrap-*.tar
build/distributions/rundeck-plugin-bootstrap-*.zip
build/distributions/rundeck-plugin-bootstrap-shadow-*.tar
build/distributions/rundeck-plugin-bootstrap-shadow-*.zip
build/distributions/rundeck-plugin-bootstrap_*_all.deb
build/distributions/rundeck-plugin-bootstrap-*.noarch.rpm
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}