From 34264728e2475f7f9f4765f58dd4cce4dd94855c Mon Sep 17 00:00:00 2001 From: Carneiro Date: Sat, 23 Nov 2024 12:39:48 -0300 Subject: [PATCH] Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index a4a4678..0d09bf6 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -9,38 +9,4 @@ jobs: - name: Deploy to alice uses: https://git.alice.ufsj.edu.br/alice-meta-packages/deb-deploy-action@main with: - key: ${{ secrets.SCP_KEY_ALICE }} - - Explore-Gitea-Actions: - runs-on: ubuntu-latest - steps: - - name: Deploy to alice - 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 /tmp - - echo "Removing old clones..." - rm -rf ./${{ github.event.repository.name }} - - echo "Cloning the repo..." - git clone --depth=1 https://git.alice.ufsj.edu.br/${{ gitea.repository }} - - echo "Removing .git dir..." - rm -rf ./${{ github.event.repository.name }}/.git ./${{ github.event.repository.name }}/.gitea - ls -la ./${{ github.event.repository.name }} - - echo "Building package..." - dpkg-deb --build ${{ github.event.repository.name }} - - echo "Moving package to ppa..." - mv ${{ github.event.repository.name }}.deb /var/www/html/debian/pool/main - cd /var/www/html/debian - - echo "Creating Packages file..." - dpkg-scanpackages pool/ > dists/stable/main/binary-amd64/Packages - - echo "Creating Relase file..." - apt-ftparchive -c /var/www/html/debian/apt-ftparchive.conf release /var/www/html/debian/dists/stable > /var/www/html/debian/dists/stable/Release - EOF \ No newline at end of file + key: ${{ secrets.SCP_KEY_ALICE }} \ No newline at end of file