-
-
Save mcline1980/4cc55072e7ba8ab815964cc5a427766d to your computer and use it in GitHub Desktop.
Simple Github Actions YAML
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: 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