Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,9 @@ name: Maven Publish

on:
workflow_dispatch:
inputs:
libraryVersion:
description: 'Library Version'
required: true
default: ''
packageVersion:
description: 'Package Version'
required: true
default: ''

jobs:
update-version:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Update Version
run: |
sed -i '/VERSION=/!b;cVERSION=\"v${{ github.event.inputs.libraryVersion }}";' ./download-libs.sh
- name: Commit, Tag and Push
run: |
git add ./download-libs.sh
git config user.name github-actions
git config user.email [email protected]
git commit -m "updated version" | exit 0
git tag ${{ github.event.inputs.packageVersion }}
git push & git push --tags

publish:
needs: update-version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Update version

on:
workflow_dispatch:
inputs:
libraryVersion:
description: 'Library Version'
required: true
default: ''
packageVersion:
description: 'Package Version'
required: true
default: ''

jobs:
update-version:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Create new branch
run: git checkout -b release/${{ github.event.inputs.packageVersion }}

- name: Update Version
run: |
sed -i '/VERSION=/!b;cVERSION=\"v${{ github.event.inputs.libraryVersion }}";' ./download-libs.sh
- name: Commit, Tag and Push
run: |
git add ./download-libs.sh
git config user.name github-actions
git config user.email [email protected]
git commit -m "chore(package version): updated version" | exit 0
git tag ${{ github.event.inputs.packageVersion }}
git push --set-upstream origin release/${{ github.event.inputs.packageVersion }}
git push --tags
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
</licenses>

<organization>
<name>Cryptlex, LLC</name>
<name>Cryptlex LLP</name>
<url>https://cryptlex.com</url>
</organization>

<developers>
<developer>
<name>Cryptlex Team</name>
<email>[email protected]</email>
<organization>Cryptlex, LLC</organization>
<organization>Cryptlex LLP</organization>
<organizationUrl>https://cryptlex.com</organizationUrl>
</developer>
</developers>
Expand Down