Paths have changed due to changes in the forgejo docker-compose
This commit is contained in:
parent
ecf8a1a1d2
commit
8aa5ef8647
1 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue