diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9f951c..7de8413 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,26 +89,4 @@ jobs: uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: skeleton/docs/html - - sync: - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'LiliaFramework/Lilia' && success() - runs-on: ubuntu-latest - needs: docs - steps: - - name: Checkout source repository - uses: actions/checkout@v2 - - name: Push to destination repository - run: | - git config --global user.email "githubactions@github.com" - git config --global user.name "Github Actions" - git clone https://${{ env.ORG_NAME }}:${{ secrets.LiliaGitSecret }}@github.com/${{ env.ORG_NAME }}/LiliaFramework.github.io.git liliagit - cd liliagit - git remote add ${{ env.ORIGINAL_REPO_NAME }} https://${{ env.ORG_NAME }}:${{ secrets.LiliaGitSecret }}@github.com/${{ env.ORG_NAME }}/${{ env.ORIGINAL_REPO_NAME }}.git - git remote update - git merge ${{ env.ORIGINAL_REPO_NAME }}/gh-pages --allow-unrelated-histories gh-pages - git push origin gh-pages - env: - GITHUB_TOKEN: ${{ secrets.LiliaGitSecret }} - ORIGINAL_REPO_NAME: ${{ github.event.repository.name }} - ORG_NAME: LiliaFramework \ No newline at end of file + publish_dir: skeleton/docs/html \ No newline at end of file