mirror of
https://github.com/pmret/website.git
synced 2024-11-09 12:32:48 +01:00
Automatic deployment :robort:
This commit is contained in:
parent
e57e129ed6
commit
63231914be
21
.github/workflows/ci.yaml
vendored
Normal file
21
.github/workflows/ci.yaml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user