Skip to content

Commit

Permalink
ci: improve technology release
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt committed Sep 5, 2024
1 parent 2c29695 commit dfb2f1c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/actions/bump-version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ runs:
# Commit and push to the desired branch, defaults to 'main'
git add .
git commit --message "Bump version from $baseVersion to $newVersion [skip ci]"
git commit --message "Bump version from $existingVersion to $newVersion [skip ci]"
git push
25 changes: 21 additions & 4 deletions .github/workflows/technology-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,36 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
removeArtifacts: true

Bump-Version:
name: 'Update release version'
Bump-Snapshot-Version:
if: endsWith(needs.Create-Tag.outputs.VERSION, '.0')
needs: [ Create-Tag ]
if: ${{ endsWith(needs.Create-Tag.outputs.VERSION, '.0') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- uses: eclipse-edc/.github/.github/actions/bump-version@main
with:
base_version: ${{ needs.Create-Tag.outputs.VERSION }}

Publish-New-Snapshot:
if: endsWith(needs.Create-Tag.outputs.VERSION, '.0')
needs: [ Bump-Snapshot-Version ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main

- uses: eclipse-edc/.github/.github/actions/publish-maven-artifacts@main
with:
gpg-private-key: ${{ secrets.ORG_GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.ORG_GPG_PASSPHRASE }}
osshr-username: ${{ secrets.ORG_OSSRH_USERNAME }}
osshr-password: ${{ secrets.ORG_OSSRH_PASSWORD }}

Post-To-Discord:
needs: [ Publish-Artefacts, Create-Tag ]
needs: [ Publish-Artefacts, Create-Tag, Create-GitHub-Release ]
if: "always()"
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit dfb2f1c

Please sign in to comment.