Exit on any failed command
All checks were successful
Build Eleventy Site / build (push) Successful in 1m21s
All checks were successful
Build Eleventy Site / build (push) Successful in 1m21s
This commit is contained in:
parent
8aa5ef8647
commit
40c9697eff
1 changed files with 1 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ 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 /sites/devon.lol && mkdir /sites/devon.lol && mv dist/* /sites/devon.lol
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue