This commit is contained in:
parent
1cd575cfdb
commit
55fe835270
1 changed files with 25 additions and 5 deletions
|
@ -1,4 +1,23 @@
|
||||||
name: Deploy site
|
# 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
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
@ -6,12 +25,13 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: node:18
|
container:
|
||||||
|
image: node:18
|
||||||
|
volumes:
|
||||||
|
- /var/www:/var/www
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run build:posts
|
- run: npm run build:posts
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- run: |
|
- run: cp -r dist/* /var/www/systemsobscure.blog/
|
||||||
cp -r dist/* /var/www/systemsobscure.blog/
|
|
||||||
chown -R www-data:www-data /var/www/systemsobscure.blog/
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue