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:
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue