mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
1b168ba904
- Was disabled, as it was bundled in with the social media workflows - Splits out into separate workflow
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
# Runs on releases
|
|
|
|
name: Publish release notes
|
|
on:
|
|
release:
|
|
types: [ published ]
|
|
|
|
jobs:
|
|
|
|
tweet:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: Eomm/why-don-t-you-tweet@5936bb1fd0096b1c2bbbb7518746638261bb4dae # pin@v1.0.1
|
|
with:
|
|
tweet-message: "InvenTree release ${{ github.event.release.tag_name }} is out
|
|
now! Release notes: ${{ github.event.release.html_url }} #opensource
|
|
#inventree"
|
|
env:
|
|
TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
|
|
TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
|
|
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
|
|
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
|
|
|
|
reddit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: bluwy/release-for-reddit-action@4b2d034b5c86a24db24363f1064149a8c2db69b4 # pin@v1.2.0
|
|
with:
|
|
username: ${{ secrets.REDDIT_USERNAME }}
|
|
password: ${{ secrets.REDDIT_PASSWORD }}
|
|
app-id: ${{ secrets.REDDIT_APP_ID }}
|
|
app-secret: ${{ secrets.REDDIT_APP_SECRET }}
|
|
subreddit: InvenTree
|
|
title: "InvenTree version ${{ github.event.release.tag_name }} released"
|
|
comment: "${{ github.event.release.body }}"
|