-
Notifications
You must be signed in to change notification settings - Fork 22
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
Showing
1 changed file
with
10 additions
and
5 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 |
---|---|---|
|
@@ -17,16 +17,21 @@ jobs: | |
run: | | ||
cd docs | ||
rm -rf build | ||
yarn install --frozen-lockfile --non-interactive | ||
yarn build | ||
cd build | ||
git init | ||
git branch -M main | ||
git remote add origin https://github.com/ceceppa/anima-doc.git | ||
git config user.name "GitHub Actions Bot" | ||
git config user.email "<[email protected]>" | ||
git remote add origin https://github.com/ceceppa/anima-doc.git | ||
git pull origin main | ||
rm -rf * | ||
yarn install --frozen-lockfile --non-interactive | ||
yarn build | ||
git add . | ||
git commit -m "Documentation" | ||
git remote set-url --push origin https://ceceppa:${{ secrets.TOKEN }}@github.com/ceceppa/anima-doc.git | ||
git commit -m "Update docs" | ||
git push -f origin main |