Skip to content

Commit

Permalink
add tweet workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
equiman committed May 19, 2022
1 parent d699faf commit 2b91969
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: publish

on:
release:
types: [published]

jobs:
tweet:
runs-on: ubuntu-latest
steps:
- uses: Eomm/why-don-t-you-tweet@v1
if: ${{ !github.event.repository.private }}
with:
tweet-message: "Extension for @code with arrow function snippets ${{ github.event.release.tag_name }} 🐛🔨 is here 🥳\n\n
$ ext install deinsoftware.arrow-function-snippets\n\n
#vscode #snippets #arrowfunction #javascript #typescript #react #vuejs\n\n
https://marketplace.visualstudio.com/items?itemName=deinsoftware.arrow-function-snippets"
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 }}
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"arfne",
"arfoeq",
"arfone",
"arrowfunction",
"arsna",
"arsnd",
"aruv",
Expand All @@ -29,11 +30,13 @@
"ecaft",
"edaaf",
"edaf",
"Eomm",
"Equiman",
"iiaf",
"patreon",
"paypal",
"volta"
"volta",
"vuejs"
],
"markdownlint.config": {
"MD024": { "siblings_only": true },
Expand Down

0 comments on commit 2b91969

Please sign in to comment.