Skip to content

Instantly share code, notes, and snippets.

@mcline1980
Created Aug 29, 2021
Embed
What would you like to do?
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