feat: update #7
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: Deploy | |
on: | |
push: | |
branches: [ production, staging ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π₯ Install Github Action Checkout | |
uses: actions/checkout@v3 | |
- name: π₯ Install Docker Layer Caching | |
uses: docker/setup-buildx-action@v1 | |
- name: π₯ Install QEMU | |
uses: docker/setup-qemu-action@v2 | |
with: | |
platforms: arm64 | |
- name: π₯ Install Node.js v16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: π₯ Install Yarn Dependencies | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: install | |
- name: π₯ Install PHP v8.2 and Composer v2 | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
tools: composer:v2 | |
coverage: none | |
- name: π¦ Install Vapor CLI | |
run: composer global require laravel/vapor-cli | |
- name: π¦ Install Composer Dependencies | |
uses: ramsey/composer-install@v2 | |
with: | |
composer-options: "--no-interaction --prefer-dist --optimize-autoloader --no-progress --no-ansi --no-dev --classmap-authoritative" | |
- name: βοΈ Deploy Environment | |
run: vapor deploy ${{ github.ref_name }} --commit="${{ github.event.head_commit.id }}" --message="${{ github.event.head_commit.message }}" | |
env: | |
VAPOR_API_TOKEN: ${{ secrets.VAPOR_API_TOKEN }} |