Compare commits

..

No commits in common. "main" and "apple-migration-post" have entirely different histories.

2 changed files with 4 additions and 9 deletions

View file

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

View file

@ -1,3 +0,0 @@
{
"MD013": false
}