Skip to content

Commit 31a3fc3

Browse files
authored
[INFRA] Simplify release announces (#174)
Add a new workflow to send message on twitter & discord, after a new release is published.
1 parent f23bf01 commit 31a3fc3

2 files changed

Lines changed: 57 additions & 1 deletion

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Announce new release
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
version:
6+
description: 'The version to announce'
7+
type: string
8+
required: true
9+
description:
10+
description: 'A short description of the version to announce'
11+
type: string
12+
required: true
13+
14+
jobs:
15+
publish_tweet:
16+
runs-on: ubuntu-22.04
17+
steps:
18+
- name: Publish a tweet
19+
uses: snow-actions/tweet@v1.4.0
20+
with:
21+
status: |
22+
📣 bpmnVisualizationR ${{ github.event.inputs.version }} is out! 🎉
23+
24+
${{ github.event.inputs.description }}
25+
26+
#bpmnvisualization #bpmn #visualization #R #RLang #programming #opensource
27+
${{ github.server_url }}/${{ github.repository }}/releases/tag/v${{ github.event.inputs.version }}
28+
env:
29+
CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
30+
CONSUMER_API_SECRET_KEY: ${{ secrets.TWITTER_CONSUMER_API_SECRET_KEY }}
31+
ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
32+
ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
33+
34+
publish_discord_post:
35+
runs-on: ubuntu-22.04
36+
steps:
37+
- name: Publish a message on Discord
38+
uses: sarisia/actions-status-discord@v1
39+
with:
40+
webhook: ${{ secrets.DISCORD_WEBHOOK }}
41+
nodetail: true
42+
notimestamp: true
43+
title: 📣 `bpmnVisualizationR` ${{ github.event.inputs.version }} is out! 🎉
44+
url: ${{ github.server_url }}/${{ github.repository }}/releases/tag/v${{ github.event.inputs.version }}
45+
description: ${{ github.event.inputs.description }}
46+
color: 0xF9DADC

MAINTAINERS.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,15 @@ It conforms to [the CRAN Submission policies first](https://cran.r-project.org/w
119119

120120
## Communicate about the release
121121

122-
**NOTE**: this is a very manual process today. For improvements, see [#130](https://github.com/process-analytics/bpmn-visualization-R/issues/130)
122+
- Open [github actions](https://github.com/process-analytics/bpmn-visualization-R/actions/workflows/announce-new-release.yml)
123+
- Click on the 'Run workflow' dropdown located on the right side of the page
124+
- Provide parameter values for _version_ and _description_
125+
- Click on the button 'Run workflow'
126+
- Make sure job execution was successful by checking the status
127+
- If all is good, you should see a new tweet on [ProcessAnalyti1](https://twitter.com/ProcessAnalyti1) and a new message on the [news](https://discord.com/channels/1011911769607913562/1024329159033499780) channel of Process Analytics server on Discord.
123128

129+
___
130+
⚠️⚠️⚠️ _**Only if the [jobs](https://github.com/process-analytics/bpmn-visualization-R/actions/workflows/announce-new-release.yml) does NOT work!**_ ⚠️⚠️⚠️
124131
### Twitter
125132

126133
You can use this template:
@@ -144,3 +151,6 @@ You can use this template:
144151
> ===> some short description here <===
145152
>
146153
> https://github.com/process-analytics/bpmn-visualization-R/releases/tag/v{version}
154+
155+
⚠️⚠️⚠️ _**End of the manual steps**_ ⚠️⚠️⚠️
156+
___

0 commit comments

Comments
 (0)