Personal-Site/.github/workflows/build.yml

28 lines
831 B
YAML
Raw Permalink Normal View History

2023-04-13 12:04:57 -04:00
name: Build Site
run-name: ${{ github.actor }} is building Personal Site
2023-04-13 12:23:53 -04:00
on: [push]
2023-04-13 12:04:57 -04:00
jobs:
Build-Site:
runs-on: ubuntu-latest
2023-04-13 12:28:32 -04:00
strategy:
matrix:
node-version: [18.x]
2023-04-13 12:04:57 -04:00
steps:
2023-04-13 12:28:32 -04:00
- run: echo "Starting build job"
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
2023-04-13 12:29:32 -04:00
- run: npm install
2023-04-13 12:28:32 -04:00
- run: npm run build
- name: copy file via ssh password
uses: appleboy/scp-action@v0.1.4
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
source: "dist/*"
target: /home/thomas/testwww
strip_components: 1