Skip to content

Instantly share code, notes, and snippets.

@mcline1980
Created August 29, 2021 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcline1980/4cc55072e7ba8ab815964cc5a427766d to your computer and use it in GitHub Desktop.
Save mcline1980/4cc55072e7ba8ab815964cc5a427766d to your computer and use it in GitHub Desktop.
Simple Github Actions YAML
name: Deployment
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Master
uses: actions/checkout@master
- name: SCP Files
# You may pin to the exact commit or the version.
# uses: appleboy/scp-action@b476d5806f2a4c1ed5902a87fa91b0623cac7258
uses: appleboy/scp-action@master
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USER }}
key: ${{ secrets.SSH_KEY }}
passphrase: ${{ secrets.SSH_KEY_PASSPHRASE }}
target: ${{ secrets.REMOTE_APP_DIR }}
source: '.'
rm: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment