Added autodeploy

This commit is contained in:
ben committed 2023-10-11 23:14:46 -04:00
1 parent 25323b4cef
commit 9e8bdd30d9
2 files changed
+73

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
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:
php-version: "8.2"
- name: Install dependencies
run: composer install --no-interaction --no-scripts --prefer-dist --no-dev
- name: Deploy
uses: deployphp/action@v1
with:
private-key: ${{ secrets.DEPLOY_KEY }}
dep: deploy production --tag=${{ githib.ref }}