Bump the composer group with 5 updates #350
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: | |
workflow_dispatch: # enable run button on github.com | |
push: | |
branches: | |
- "main" | |
# prevent concurrency between different deploys | |
concurrency: production_environment | |
jobs: | |
front: | |
name: Build CSS | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "lts/*" | |
cache: "npm" | |
- name: Process and lint | |
run: | | |
npm install | |
npm run build | |
- name: Upload build files | |
uses: actions/upload-artifact@v4 | |
with: | |
name: css | |
path: public/dist/ | |
deploy: | |
name: Deploy to Production | |
runs-on: ubuntu-latest | |
needs: front | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download build assets | |
uses: actions/download-artifact@v4 | |
with: | |
name: css | |
path: public/dist/ | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
coverage: none | |
tools: composer | |
- name: Composer install | |
run: composer install | |
- name: Deploy | |
uses: deployphp/action@v1 | |
with: | |
private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
dep: deploy stage=prod -vvv | |
env: | |
DOT_ENV: ${{ secrets.DOT_ENV }} |