Skip to content

feat: improve styling #351

feat: improve styling

feat: improve styling #351

Workflow file for this run

name: Build and deploy code
on:
push:
branches:
- "main"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Run build command
uses: appleboy/ssh-action@master
with:
host: ${{secrets.DEPLOYMENT_HOST}}
username: ${{secrets.DEPLOYMENT_USERNAME}}
key: ${{secrets.DEPLOYMENT_SSH_KEY}}
script: |
cd /home/${{secrets.DEPLOYMENT_USERNAME}}/zolza-hairstyles-web
git reset --hard
git pull
echo '${{secrets.DEPLOYMENT_PASSWORD}}' | sudo -S npm update -g npm
npm install
npm run build
deploy:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Deploy to the server
uses: appleboy/ssh-action@master
with:
host: ${{secrets.DEPLOYMENT_HOST}}
username: ${{secrets.DEPLOYMENT_USERNAME}}
key: ${{secrets.DEPLOYMENT_SSH_KEY}}
script: |
cd /home/${{secrets.DEPLOYMENT_USERNAME}}/zolza-hairstyles-web
echo '${{secrets.DEPLOYMENT_PASSWORD}}' | sudo -S cp -r ./dist /var/www/zolza-hairstyles.pl