diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml deleted file mode 100644 index 95da609..0000000 --- a/.gitea/workflows/deploy.yaml +++ /dev/null @@ -1,36 +0,0 @@ -name: Deploy - -on: - push: - branches: [main] - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - path: /workspace/SPT/DB-Website - fetch-depth: 0 - - - name: List files - run: ls -lah - shell: bash - with: - path: /workspace/SPT/DB-Website - - - name: Setup known_hosts - run: | - mkdir -p ~/.ssh - echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts - - - name: Setup SSH key - uses: webfactory/ssh-agent@v0.9.0 - with: - ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - - - name: Push to production - run: | - git remote add deploy ssh://dbwebsite@51.195.101.201/home/dbwebsite/DB-Website.git - git push deploy main:main