AliceClass/.gitea/workflows/ssh_build.yml

28 lines
850 B
YAML
Executable File

name: Deploy
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy to alice
uses: https://git.alice.ufsj.edu.br/Carneiro/alice-sites-pull-action@main
with:
dirname: aliceclass
src_dir: /var/www/src
dest_dir: /var/www/html
# - name: Deploy to Server
# run: |
# echo "${{ secrets.SCP_KEY_ALICE }}" > /tmp/ssh_private_key
# chmod 600 /tmp/ssh_private_key
# ssh -o "StrictHostKeyChecking no" -i /tmp/ssh_private_key act_runner@alice.ufsj.edu.br -p ${{ secrets.SSH_PORT_ALICE }} << 'EOF'
# cd /var/www/src/AliceClass
# git pull origin main
# bundle install
# EOF
# - run: echo "🍏 This job's status is ${{ job.status }}."