testando instalação do octane via actions #6
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" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build_deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Baixar o código" | |
| uses: actions/checkout@v4 | |
| - name: "PHP Composer install" | |
| run: composer install --no-interaction --no-progress --no-suggest --no-dev --ignore-platform-reqs | |
| - name: "Install octane" | |
| uses: actions/checkout@v4 | |
| - name: "PHP Composer install" | |
| run: php artisan octane:install | |
| - name: "Copiar arquivos para VPS" | |
| uses: appleboy/[email protected] | |
| with: | |
| host: "${{ secrets.SSH_HOST }}" | |
| username: "${{ secrets.SSH_USER }}" | |
| password: "${{ secrets.SSH_PASS }}" | |
| source: "." | |
| target: /home/projetos/devandcoffee/api-auth | |
| - name: "Build da aplicação" | |
| uses: appleboy/[email protected] | |
| with: | |
| host: "${{ secrets.SSH_HOST }}" | |
| username: "${{ secrets.SSH_USER }}" | |
| password: ${{ secrets.SSH_PASS }} | |
| script: | | |
| cd /home/projetos/devandcoffee/api-auth |