mirror of
https://gh.wpcy.net/https://github.com/fairpm/server.git
synced 2026-05-07 08:40:49 +08:00
25 lines
590 B
YAML
25 lines
590 B
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Composer dependencies
|
|
uses: php-actions/composer@v6
|
|
|
|
- name: Run deploy script
|
|
run: bin/deploy.sh --apply
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
DEPLOY_HOST: ${{ secrets.PRODUCTION_DEPLOY_HOST }}
|
|
DEPLOY_USER: ${{ secrets.PRODUCTION_DEPLOY_USER }}
|
|
DEPLOY_PASS: ${{ secrets.PRODUCTION_DEPLOY_PASS }}
|