This commit is contained in:
parent
0f45c42e7b
commit
5816f68410
1 changed files with 5 additions and 3 deletions
|
|
@ -22,14 +22,16 @@ jobs:
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
||||||
- name: Build Eleventy site
|
- name: Build Eleventy site
|
||||||
run: npm run build # Adjust this command if your build command is different
|
run: npm run build
|
||||||
|
|
||||||
- name: Move built site
|
- name: Move built site
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
|
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
|
||||||
mv _site/* /media/Media/apps/personal-site/prod/
|
echo "Deploying production..."
|
||||||
|
mv dist/* /media/Media/apps/personal-site/prod/
|
||||||
echo "Running webmention..."
|
echo "Running webmention..."
|
||||||
webmention dist/feed.xml --send
|
webmention dist/feed.xml --send
|
||||||
else
|
else
|
||||||
mv _site/* /media/Media/apps/personal-site/staging/
|
echo "Deploying staging..."
|
||||||
|
mv dist/* /media/Media/apps/personal-site/staging/
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue