Automatic deployment :robort:

This commit is contained in:
Ethan Roseman 2023-03-08 23:01:56 +09:00
parent e57e129ed6
commit 63231914be
No known key found for this signature in database
GPG Key ID: 27F9FCEB8E4969BD

21
.github/workflows/ci.yaml vendored Normal file
View File

@ -0,0 +1,21 @@
name: CI
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: yarn
- run: yarn build
- name: Deploy
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
source: "dist/"
target: "/var/www/papermar.io/html"
strip_components: 1