Skip to content

Instantly share code, notes, and snippets.

@ldclakmal
Created May 5, 2020 17:13
Show Gist options
  • Save ldclakmal/c2b97b671ef37edfc823bc50b815f69d to your computer and use it in GitHub Desktop.
Save ldclakmal/c2b97b671ef37edfc823bc50b815f69d to your computer and use it in GitHub Desktop.
Twitter Connector - GitHub Actions
name: Deployment
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Ballerina Build
uses: ballerina-platform/ballerina-action/@master
with:
args:
build -a -c
env:
CONSUMER_KEY: ${{ secrets.CONSUMER_KEY }}
CONSUMER_SECRET: ${{ secrets.CONSUMER_SECRET }}
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
ACCESS_TOKEN_SECRET: ${{ secrets.ACCESS_TOKEN_SECRET }}
- name: Ballerina Push
uses: ballerina-platform/ballerina-action/@master
with:
args:
push -a
env:
BALLERINA_CENTRAL_ACCESS_TOKEN: ${{ secrets.BALLERINA_CENTRAL_ACCESS_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment