28 lines
529 B
YAML
28 lines
529 B
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: ssh-keyscan
|
|
run: ssh-keyscan git.koptilnya.xyz >> ~/.ssh/known_hosts
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
ssh-strict: false
|
|
persist-credentials: false
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
npm install -g yarn
|
|
yarn install
|
|
yarn build
|