From 99ef0ea4edefaab6fc34b6a201fc69981710f05f Mon Sep 17 00:00:00 2001 From: Carneiro Date: Sun, 24 Nov 2024 08:30:00 -0300 Subject: [PATCH] Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index b8abf21..d67f3cb 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -1,36 +1,10 @@ name: Deploy run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 -on: [workflow_dispatch] +on: [push] jobs: Deploy: runs-on: ubuntu-latest steps: - - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - - - name: Check out repository code - uses: RouxAntoine/checkout@v3.5.4 - - - name: Setup env - run: | - sudo apt update -y - sudo apt install bundler -y - - - run: cd ${{ gitea.workspace }} - - - name: Setup bundle deps - run: bundle install - - - name: Build - run: bundle exec jekyll build - - name: Deploy to alice - run: | - echo "${{ secrets.SCP_KEY_ALICE }}" > /tmp/ssh_private_key - chmod 600 /tmp/ssh_private_key - mv _site alice - scp -o "StrictHostKeyChecking no" -i /tmp/ssh_private_key -P ${{ secrets.SSH_PORT_ALICE }} -r alice act_runner@alice.ufsj.edu.br:/var/www/html - - - run: echo "🍏 This job's status is ${{ job.status }}." + uses: https://git.alice.ufsj.edu.br/Carneiro/alice-sites-pull-action@main \ No newline at end of file