Combine previous file steps in dev-build
All checks were successful
Build Dev PWA / Build-PWA (push) Successful in 31s
All checks were successful
Build Dev PWA / Build-PWA (push) Successful in 31s
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
@@ -15,7 +15,7 @@ jobs:
|
|||||||
run: npm install
|
run: npm install
|
||||||
- name: Build pwa
|
- name: Build pwa
|
||||||
run: npm run build
|
run: npm run build
|
||||||
- name: Clear previous dev pwa
|
- name: Replace previous dev pwa
|
||||||
env:
|
env:
|
||||||
DEV_HOST: ${{ secrets.DEV_HOST }}
|
DEV_HOST: ${{ secrets.DEV_HOST }}
|
||||||
DEV_KEY: ${{ secrets.DEV_KEY }}
|
DEV_KEY: ${{ secrets.DEV_KEY }}
|
||||||
@@ -27,8 +27,6 @@ jobs:
|
|||||||
chmod 600 ~/.ssh/known_hosts
|
chmod 600 ~/.ssh/known_hosts
|
||||||
ssh root@$DEV_HOST "rm -R /var/www/html/alvinn-dev/*"
|
ssh root@$DEV_HOST "rm -R /var/www/html/alvinn-dev/*"
|
||||||
echo "Old files removed"
|
echo "Old files removed"
|
||||||
- name: Copy new dev pwa
|
|
||||||
run: |
|
|
||||||
scp -r ${{ gitea.workspace }}/www/* root@$DEV_HOST:/var/www/html/alvinn-dev
|
scp -r ${{ gitea.workspace }}/www/* root@$DEV_HOST:/var/www/html/alvinn-dev
|
||||||
ssh root@$DEV_HOST "chown -R www-data:www-data /var/www/html/alvinn-dev/*"
|
ssh root@$DEV_HOST "chown -R www-data:www-data /var/www/html/alvinn-dev/*"
|
||||||
echo "New files copied"
|
echo "New files copied"
|
||||||
|
|||||||
Reference in New Issue
Block a user