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:
image: node:18
volumes:
- /media/Media:/media/Media
# This is the path mounted in the Forgejo stack's docker-compose
- /sites:/sites
steps:
- name: Checkout code
@ -31,12 +32,12 @@ jobs:
run: |
if [ "${{ github.ref }}" = "refs/heads/main" ]; then
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 "ls dist:"
ls dist
npx webmention /media/Media/sites/devon.lol/feed.xml --send
npx webmention /sites/devon.lol/feed.xml --send
else
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