Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bleonheart committed Apr 30, 2024
1 parent 6173655 commit 05286f6
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
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
publish_dir: skeleton/docs/html

0 comments on commit 05286f6

Please sign in to comment.