docs: update implemented features list #355
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |