Skip to content
Merged
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
77 changes: 67 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,72 @@ jobs:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEYID }}
run: "bash ./gradlew publishReleasePublicationToSonatypeRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }} publishNoopPublicationToSonatypeRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }}
--max-workers 1 closeAndReleaseStagingRepository"
run: "bash ./gradlew publishReleasePublicationToSonatypeRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }} publishNoopPublicationToSonatypeRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }} --max-workers 1 closeAndReleaseStagingRepository"

- name: Microsoft Teams Notification
uses: skitionek/notify-microsoft-teams@v1.0.8
if: success()
- name: Send Teams notification
uses: fjogeleit/http-request-action@v1.16.4
with:
webhook_url: ${{ secrets.ANDROID_LIBRARIES_TEAMS_WEBHOOK }}
needs: ${{ toJson(needs) }}
job: ${{ toJson(job) }}
steps: ${{ toJson(steps) }}
overwrite: "{title: `New Tweaks version published ${{ github.event.release.tag_name }}`, text:`Release Notes:\n ${{ github.event.release.html_url }}`}"
url: ${{ secrets.ANDROID_LIBRARIES_TEAMS_WEBHOOK }}
method: 'POST'
data: |
{
"type": "message",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"type": "AdaptiveCard",
"version": "1.5",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "auto",
"items": [
{
"type": "Image",
"url": "https://raw.githubusercontent.com/Skitionek/notify-microsoft-teams/master/icons/success.png",
"width": "56px",
"height": "56px",
"style": "RoundedCorners"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "New Tweaks version published ${{ github.event.release.tag_name }}",
"wrap": true,
"weight": "Bolder",
"style": "heading"
}
]
}
]
},
{
"type": "TextBlock",
"text": "${{ github.event.release.body }}",
"wrap": true
},
{
"type": "ActionSet",
"actions": [
{
"type": "Action.OpenUrl",
"title": "Open release",
"url": "${{ github.event.release.html_url }}"
}
]
}
],
"$schema": "https://adaptivecards.io/schemas/adaptive-card.json"
}
}
]
}
Loading