Update paths
All checks were successful
Build Eleventy Site / build (push) Successful in 1m35s

Paths have changed due to changes in the forgejo docker-compose
This commit is contained in:
Devon Campbell 2026-06-08 21:09:24 -04:00
commit 8aa5ef8647

View file

@ -12,7 +12,8 @@ jobs:
container: container:
image: node:18 image: node:18
volumes: volumes:
- /media/Media:/media/Media # This is the path mounted in the Forgejo stack's docker-compose
- /sites:/sites
steps: steps:
- name: Checkout code - name: Checkout code
@ -31,12 +32,12 @@ jobs:
run: | run: |
if [ "${{ github.ref }}" = "refs/heads/main" ]; then if [ "${{ github.ref }}" = "refs/heads/main" ]; then
echo "Deploying production..." echo "Deploying production..."
rm -rf /media/Media/sites/devon.lol && mkdir /media/Media/sites/devon.lol && mv dist/* /media/Media/sites/devon.lol rm -rf /sites/devon.lol && mkdir /sites/devon.lol && mv dist/* /sites/devon.lol
echo "Running webmention..." echo "Running webmention..."
echo "ls dist:" echo "ls dist:"
ls dist ls dist
npx webmention /media/Media/sites/devon.lol/feed.xml --send npx webmention /sites/devon.lol/feed.xml --send
else else
echo "Deploying staging..." echo "Deploying staging..."
rm -rf /media/Media/sites/staging.devon.lol && mkdir /media/Media/sites/staging.devon.lol && mv dist/* /media/Media/sites/staging.devon.lol rm -rf /sites/staging.devon.lol && mkdir /sites/staging.devon.lol && mv dist/* /sites/staging.devon.lol
fi fi