remove logs #660
This file contains hidden or 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: Deploy to development server. | |
| on: | |
| push: | |
| branches: | |
| - 'development' | |
| jobs: | |
| deploy: | |
| name: Deploy to DEVELOPMENT server | |
| runs-on: ubuntu-latest | |
| environment: development | |
| # https://github.com/marketplace/actions/ssh-execute-commands | |
| steps: | |
| - name: Login remotely, pull and deploy | |
| uses: appleboy/ssh-action@master | |
| with: | |
| host: ${{ secrets.DEVELOPMENT_HOSTNAME }} | |
| username: ${{ secrets.DEVELOPMENT_USERNAME }} | |
| key: ${{ secrets.DEVELOPMENT_SECRET_KEY_SSH }} | |
| port: 22 | |
| command_timeout: 200m | |
| script: | | |
| set -e | |
| export VITE_APP_API_GRAPHQL_URL=https://${{ secrets.DEVELOPMENT_HOSTNAME }}/graphql/ | |
| export VITE_APP_API_GRAPHQL_WEBSOCKET_URL=wss://${{ secrets.DEVELOPMENT_HOSTNAME }}/graphql/ | |
| export VITE_APP_SENTRY_DSN=${{ secrets.SENTRY_DSN }} | |
| export VITE_APP_SENTRY_ENV=development | |
| export NODE_OPTIONS="--max-old-space-size=8192" | |
| cd /home/${{ secrets.DEVELOPMENT_USERNAME }}/OneSilaFrontend | |
| git config pull.rebase false | |
| git pull | |
| npm install | |
| npm run build |