Files
caloriethingy.com/.gitea/workflows/deploy.yml
Chris Smith 0d01ba8a88
Some checks failed
Deploy to Production / deploy (push) Failing after 57s
Update .gitea/workflows/deploy.yml
2025-10-06 13:24:44 -05:00

30 lines
713 B
YAML

name: Deploy to Production
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Install Deployer
run: |
composer global require deployer/deployer
export PATH="$HOME/.composer/vendor/bin:$PATH"
- name: Setup SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H ${{ secrets.HOST }} >> ~/.ssh/known_hosts
- name: Deploy
run: dep deploy calorie