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:
|
||||
push:
|
||||
branches: [main]
|
||||
|
@ -6,12 +25,13 @@ on:
|
|||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
container: node:18
|
||||
container:
|
||||
image: node:18
|
||||
volumes:
|
||||
- /var/www:/var/www
|
||||
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/
|
||||
- run: cp -r dist/* /var/www/systemsobscure.blog/
|
||||
|
|
Loading…
Add table
Reference in a new issue