17 lines
383 B
YAML
17 lines
383 B
YAML
name: Deploy site
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
container: node:18
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- run: npm install
|
|
- run: npm run build:posts
|
|
- run: npm run build
|
|
- run: |
|
|
cp -r dist/* /var/www/systemsobscure.blog/
|
|
chown -R www-data:www-data /var/www/systemsobscure.blog/
|