Skip to content

add a GitHub workflow to deploy the website #1

add a GitHub workflow to deploy the website

add a GitHub workflow to deploy the website #1

Workflow file for this run

name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout this repository
uses: actions/[email protected]
- name: Install depencies
run: yarn install
- name: Build website
run: yarn build
- name: List files in the repository
run: |
ls
- name: Copy site to DigitalOceab
uses: garygrossgarten/[email protected]
with:
local: public
remote: ${{ secrets.SSH_PATH }}
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
privateKey: ${{ secrets.SSH_KEY }}
concurrency: 10
rmRemote: true
atomicPut: true