Skip to content

Instantly share code, notes, and snippets.

@abr4xas
Created November 25, 2020 18:13
Show Gist options
  • Save abr4xas/816eedac71005fdf5150909b676ffee8 to your computer and use it in GitHub Desktop.
Save abr4xas/816eedac71005fdf5150909b676ffee8 to your computer and use it in GitHub Desktop.
name: Deploy
on:
push:
branches:
- master # Change this to your default branch
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2-beta
with:
node-version: '12'
- name: Install
run: yarn
- name: Build app
run: yarn build
- name: Copy file via scp
uses: appleboy/scp-action@master
env:
HOST: ${{ secrets.HOST }}
USERNAME: ${{ secrets.USERNAME }}
PORT: ${{ secrets.PORT }}
KEY: ${{ secrets.SSHKEY }}
PASSPHRASE: ${{secrets.PASSPHRASE}}
with:
source: "build/*"
target: ${{ secrets.TARGET }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment