Created
April 25, 2021 13:48
-
-
Save lambirou/11be3378b2c8ae69de83862ccf872b12 to your computer and use it in GitHub Desktop.
Deploy to SSH
This file contains hidden or 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 push | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Build & Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: ๐ Get latest source code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
uses: php-actions/composer@v5 | |
with: | |
php_version: 7.4 | |
version: 2 | |
- name: Deploy to Staging server | |
uses: easingthemes/[email protected] | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }} | |
ARGS: "-rltgoDzvO" | |
SOURCE: "dist/" | |
REMOTE_HOST: ${{ secrets.REMOTE_HOST }} | |
REMOTE_USER: ${{ secrets.REMOTE_USER }} | |
TARGET: ${{ secrets.REMOTE_TARGET }} | |
EXCLUDE: "/dist/, /node_modules/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment