Skip to content

Commit

Permalink
Set up for github release
Browse files Browse the repository at this point in the history
  • Loading branch information
spyrkob committed Jan 23, 2024
1 parent a19bf9e commit 90b6a5a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ name: Prospero extras
# Open the PR to do the PR from
# the spyrkob/prospero-extras repository
release:
current-version: 1.0.0.Beta1
next-version: 1.0.0.Beta1-SNAPSHOT
# current-version: 1.0.0.Beta1
#next-version: 1.0.0.Beta1-SNAPSHOT
18 changes: 15 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: WildFly Prospero Release
name: Prospero-extras Release

on:
pull_request:
types: [closed]
paths:
- '.github/project.yml'

permissions: write-all

jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -23,13 +25,23 @@ jobs:
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.name "Prospero-extras CI"
git config --global user.email "[email protected]"
git checkout -b release
mvn -B release:prepare -Pdist,jboss-release -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}}
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
4 changes: 1 addition & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,8 @@
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<pushChanges>false</pushChanges>
<arguments>-DskipTests -Pdist ${release.arguments}</arguments>
<arguments>-DskipTests ${release.arguments}</arguments>
<tagNameFormat>@{project.version}</tagNameFormat>
<!-- install is needed to make Galleon happy -->
<preparationGoals>clean install</preparationGoals>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit 90b6a5a

Please sign in to comment.