deploy #129
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: 'Deploy' | |
on: | |
workflow_dispatch: | |
repository_dispatch: | |
types: [ deploy ] | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# third-party action that cancels previous runs | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Cloning repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Push to dokku | |
uses: dokku/github-action@master | |
with: | |
branch: 'main' | |
git_remote_url: 'ssh://[email protected]:22/titaniumsdk.com' | |
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} |