fix: update deploy workflow to use container volumes and clean up comments
This commit is contained in:
@@ -11,9 +11,10 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
check-and-deploy:
|
check-and-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Mount the local Apache folder into this job
|
|
||||||
volumes:
|
container:
|
||||||
- /var/www/design-system:/var/www/design-system
|
volumes:
|
||||||
|
- /var/www/design-system:/var/www/design-system
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -51,14 +52,10 @@ jobs:
|
|||||||
- name: Deploy to Apache volume
|
- name: Deploy to Apache volume
|
||||||
if: steps.version_check.outputs.changed == 'true'
|
if: steps.version_check.outputs.changed == 'true'
|
||||||
run: |
|
run: |
|
||||||
# Clean old documentation files
|
|
||||||
rm -rf /var/www/design-system
|
rm -rf /var/www/design-system
|
||||||
|
|
||||||
# 2. Recreate the fresh, empty directory
|
|
||||||
mkdir -p /var/www/design-system
|
mkdir -p /var/www/design-system
|
||||||
|
|
||||||
# Copy the new build (replace 'dist' if your build output directory is different)
|
cp -r dist/. /var/www/design-system/
|
||||||
cp -r dist/* /var/www/design-system/
|
|
||||||
|
|
||||||
# Fix permissions so Apache can read the raw files properly
|
|
||||||
chmod -R 755 /var/www/design-system/
|
chmod -R 755 /var/www/design-system/
|
||||||
Reference in New Issue
Block a user