-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6173655
commit 05286f6
Showing
1 changed file
with
1 addition
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |