sdf
Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
parent
1dfee93bb0
commit
35a01e6754
6
.github/workflows/push.yml
vendored
6
.github/workflows/push.yml
vendored
@ -2,7 +2,7 @@ name: Clone or pull repository
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- prod
|
- main
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Run remote SSH command
|
name: Run remote SSH command
|
||||||
@ -21,7 +21,7 @@ jobs:
|
|||||||
else
|
else
|
||||||
mkdir ${{ secrets.PATH }}
|
mkdir ${{ secrets.PATH }}
|
||||||
cd ${{ secrets.PATH }}
|
cd ${{ secrets.PATH }}
|
||||||
git clone -b prod https://github.com/${{ github.repository }} .
|
git clone https://github.com/${{ github.repository }} .
|
||||||
sed -i "s/ASTRO_URL=.*/ASTRO_URL=${{ vars.ASTRO_URL }}/" .env
|
sed -i "s/ASTRO_URL=.*/ASTRO_URL=${{ vars.ASTRO_URL }}/" .env
|
||||||
sed -i "s/PAYLOAD_URL=.*/PAYLOAD_URL=${{ vars.PAYLOAD_URL }}/" .env
|
sed -i "s/PAYLOAD_URL=.*/PAYLOAD_URL=${{ vars.PAYLOAD_URL }}/" .env
|
||||||
sed -i "s/PAYLOAD_PORT=.*/PAYLOAD_PORT=${{ secrets.PAYLOAD_PORT }}/" .env
|
sed -i "s/PAYLOAD_PORT=.*/PAYLOAD_PORT=${{ secrets.PAYLOAD_PORT }}/" .env
|
||||||
@ -33,5 +33,5 @@ jobs:
|
|||||||
cp .env ./astro/.env
|
cp .env ./astro/.env
|
||||||
fi
|
fi
|
||||||
yarn prod payload
|
yarn prod payload
|
||||||
sleep 30
|
sleep 10
|
||||||
yarn prod astro
|
yarn prod astro
|
||||||
|
@ -10,7 +10,7 @@ const { title } = Astro.props;
|
|||||||
<html lang="de">
|
<html lang="de">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
</head>
|
</head>
|
||||||
|
Loading…
Reference in New Issue
Block a user