This simple action gets the latest release from the AddTodoist repo and tweets it when a new release is published.
consumer-key:
description: 'The consumer key of the twitter application'
consumer-secret:
description: 'The consumer secret of the twitter application'
access-token:
description: 'The access token of the twitter application'
access-token-secret:
description: 'The access token secret of the twitter application'
name: Release
on:
push:
branches:
- main
jobs:
tweet:
needs: release
name: Tweet Release Info
runs-on: ubuntu-latest
steps:
- name: Tweet Release
uses: AddToDoist/[email protected]
with:
consumer-key: ${{ secrets.CONSUMER_KEY }}
consumer-secret: ${{ secrets.CONSUMER_SECRET }}
access-token: ${{ secrets.ACCESS_TOKEN }}
access-token-secret: ${{ secrets.ACCESS_TOKEN_SECRET }}
- Make changes to source code
- Update package.json version
- Build the source with
yarn build
- Commit and push changes to repo
- From github: create a new release
MIT © David Jiménez