2025-07-08 16:45:18 +01:00
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
name: Deploy Blog
|
2025-07-08 15:56:42 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
2025-07-08 16:45:18 +01:00
|
|
|
container:
|
|
|
|
image: node:18
|
|
|
|
volumes:
|
|
|
|
- /var/www:/var/www
|
2025-07-08 15:56:42 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- run: npm install
|
|
|
|
- run: npm run build:posts
|
|
|
|
- run: npm run build
|
2025-07-08 16:45:18 +01:00
|
|
|
- run: cp -r dist/* /var/www/systemsobscure.blog/
|