update deploy rules for /srv/www
All checks were successful
deploy-docs / build-and-deploy (push) Successful in 25s
All checks were successful
deploy-docs / build-and-deploy (push) Successful in 25s
This commit is contained in:
@@ -9,8 +9,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: hugomods/hugo:latest
|
||||
# Mount deployment target and the framework (Read-Only)
|
||||
options: --user root -v /srv/www:/deploy -v /srv/dev/hugo/wiki:/framework:ro
|
||||
# Mount deployment target and the framework directly from the host
|
||||
options: --user root -v /srv/www:/srv/www -v /srv/dev/hugo/wiki:/framework:ro
|
||||
|
||||
steps:
|
||||
- name: Checkout Docs Source
|
||||
@@ -53,6 +53,6 @@ jobs:
|
||||
HUGO_PARAMS_ARTICLE_EDITURL="https://git.wompmacho.com/wompmacho/docs-public/src/branch/main" hugo --minify --destination public
|
||||
|
||||
# Deploy to Nginx Volume
|
||||
mkdir -p /deploy/docs-public
|
||||
rm -rf /deploy/docs-public/*
|
||||
cp -r public/* /deploy/docs-public/
|
||||
mkdir -p /srv/www/docs-public
|
||||
rm -rf /srv/www/docs-public/*
|
||||
cp -r public/* /srv/www/docs-public/
|
||||
|
||||
Reference in New Issue
Block a user