Skip to content

Prepare release 1.0.0.Beta6 #7

Prepare release 1.0.0.Beta6

Prepare release 1.0.0.Beta6 #7

Workflow file for this run

name: Prospero-extras Release
on:
pull_request:
types: [closed]
paths:
- '.github/project.yml'
permissions: write-all
jobs:
release:
runs-on: ubuntu-latest
name: release
if: ${{github.event.pull_request.merged == true}}
steps:
- uses: radcortez/project-metadata-action@main
name: retrieve project metadata
id: metadata
with:
github-token: ${{secrets.GITHUB_TOKEN}}
metadata-file-path: '.github/project.yml'
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- name: maven release ${{steps.metadata.outputs.current-version}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
java -version
git config --global user.name "Prospero-extras CI"
git config --global user.email "[email protected]"
git checkout -b release
mvn -B release:prepare -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}}
git checkout ${{github.base_ref}}
git rebase release
git push
git push --tags
- name: publish release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v1
with:
files: target/prospero-extras-${{steps.metadata.outputs.current-version}}-shaded.jar
tag_name: ${{steps.metadata.outputs.current-version}}
generate_release_notes: true