diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 8226171a..923695b1 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -1,17 +1,11 @@ name: Build on: - pull_request: - branches: - - v4 push: branches: - v4 jobs: build: runs-on: ubuntu-latest - concurrency: - group: "pages" - cancel-in-progress: false steps: - run: git config --global core.quotepath false - uses: actions/checkout@v3 @@ -30,13 +24,10 @@ jobs: uses: actions/upload-pages-artifact@v2 with: path: ./public - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url}} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2 + - name: Create private key + run: | + echo "${{ secrets.PRIVATE_KEY }}" > /tmp/act_runner_key + chmod 600 /tmp/act_runner_key + - name: rsync public directory + run: | + rsync -avz --delete -e "ssh -i /tmp/act_runner_key -o StrictHostKeyChecking=no" ${{ gitea.workspace }}/public/* ${{ variables.WEBSERVER_USER }}@${{ variables.WEBSERVER_HOST }}:/var/www/html \ No newline at end of file