Temporary fix to reduce slack rate limits #510
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: Continuous Deployment | |
| on: | |
| push: | |
| branches: [ main ] | |
| concurrency: production_environment | |
| jobs: | |
| deploy: | |
| environment: production | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.4" | |
| - name: Composer Install | |
| run: composer install --ignore-platform-reqs | |
| - name: Setup Application | |
| run: | | |
| cp .env.ci .env | |
| php artisan key:generate | |
| php artisan passport:keys | |
| - name: Run Tests | |
| run: vendor/bin/phpunit | |
| - name: Deploy | |
| uses: deployphp/action@v1 | |
| with: | |
| private-key: ${{ secrets.SSH_KEY }} | |
| dep: deploy |