Skip to content
Merged
Changes from 5 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
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,32 @@ jobs:
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY_CONTENTS }}

- name: Update README.md with new version
continue-on-error: true
run: |
set -euo pipefail
VERSION="${{ github.event.release.tag_name }}"
echo "Updating dependency sections in README.md with version ${VERSION}"

# Update Gradle dependency section
sed -i -E 's|implementation\("com\.wire:wire-apps-jvm-sdk:[^"]+"\)|implementation("com.wire:wire-apps-jvm-sdk:'"$VERSION"'")|g' README.md

# Update Maven dependency section (only within the com.wire:wire-apps-jvm-sdk dependency block)
sed -i -E '/<groupId>com\.wire<\/groupId>/,/<\/dependency>/{
/<artifactId>wire-apps-jvm-sdk<\/artifactId>/,/<\/dependency>/{
s|<version>[^<]+</version>|<version>'"$VERSION"'</version>|g
}
}' README.md
- name: Commit and push README.md update
run: |
VERSION=${GITHUB_REF#refs/tags/}
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add README.md
git commit -m "docs: Update README.md to version ${VERSION}" || echo "No changes to commit"
git push origin main

- name: Store reports
if: failure()
uses: actions/upload-artifact@v4
Expand Down