Skip to content

fix workflow

fix workflow #8

Workflow file for this run

name: "Release pipeline"
on:
push:
tags:
- 'v*.*.*'
jobs:
version:
name: Get version number from tag
runs-on: ubuntu-22.04
outputs:
version: ${{ steps.vars.outputs.version }}
steps:
- name: Read version
id: vars
# extract tag name without v prefix
run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
shell: bash
readme:
name: Replace version in README.md
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: jacobtomlinson/gha-find-replace@v3
with:
find: "[0-9]+.[0-9]+.[0-9]+"
replace: "${{ needs.version.outputs.version }}"
include: "**README.md"
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4
release-build:
runs-on: ubuntu-22.04
needs: version
steps:
- name: git clone
uses: actions/[email protected]
- name: Set up JDKs
uses: actions/[email protected]
with:
distribution: temurin
java-version: 8
- name: Set up Gradle
uses: gradle/[email protected]
- run: "./gradlew :publishPlugin -PpluginVersion=${{ needs.version.outputs.version }}"
env:
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}