This repository has been archived on 2024-05-20. You can view files and clone it, but cannot push or open issues or pull requests.
2023-10-12 00:55:34 -04:00

37 lines
861 B
YAML

name: deploy
on:
release:
types: [released]
concurrency: production_environment
jobs:
production:
runs-on: ubuntu-latest
environment: Production
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
tools: composer
extensions: bcmath, ctype, fileinfo, json, odbc, mbstring, openssl, pdo, pdo_mysql, pdo_odbc tokenizer, xml, soap, redis, igbinary
php-version: "8.2"
ssh-config: |
Host benhub
Port 9001
User git
- name: Install dependencies
run: composer install --no-interaction --no-scripts --prefer-dist
- name: Deploy
uses: deployphp/action@v1
with:
private-key: ${{ secrets.DEPLOY_KEY }}
dep: deploy production