-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #201 from etra0/master
use checkout to clone framedsc site & change target dir.
- Loading branch information
Showing
1 changed file
with
12 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 |
---|---|---|
|
@@ -23,10 +23,17 @@ jobs: | |
persist-credentials: false | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Clone framedsc site repo. | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: framedsc/framedsc.github.io | ||
persist-credentials: false | ||
path: ./_framedsc.github.io | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build site | ||
shell: cmd | ||
run: | | ||
git clone [email protected]:framedsc/framedsc.github.io.git %GITHUB_WORKSPACE%/../framedsc.github.io | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Github Actions" | ||
.\tools\docnet -c markdown | ||
|
@@ -35,16 +42,16 @@ jobs: | |
echo Executing pre-generate-site hooks scripts | ||
PowerShell -ExecutionPolicy Bypass -File "tools\generate-site-hooks\generatebannerspage.ps1" | ||
del /q ..\framedsc.github.io\*.* | ||
for /d %%i in (..\framedsc.github.io\*.*) do @rd /s /q "%%i" | ||
del /q ..\_framedsc.github.io\*.* | ||
for /d %%i in (.\_framedsc.github.io\*.*) do @rd /s /q "%%i" | ||
copy /y theme\destination\favicon.ico .\site | ||
robocopy .\site ..\framedsc.github.io /s /e | ||
robocopy .\site ..\_framedsc.github.io /s /e | ||
if ErrorLevel 8 (exit /B 1) else (exit /B 0) | ||
- name: Submit site | ||
run: | | ||
cd $env:GITHUB_WORKSPACE | ||
cd ..\framedsc.github.io | ||
cd .\_framedsc.github.io | ||
git add -A | ||
git commit -m "${{ github.event.head_commit.message }}" | ||
git push |