28 lines
858 B
YAML
Executable File
28 lines
858 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:
|
|
site-dirname: aliceclass
|
|
source-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 }}."
|