Skip to content

Commit 4acbc49

Browse files
committed
Update documentation.yml
Correct the generation step, restrict the job from running on forks.
1 parent d2e1a58 commit 4acbc49

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/documentation.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
document:
10+
if: ${{ github.repository == 'compnerd/swift-win32' }}
1011
runs-on: windows-latest
1112

1213
steps:
@@ -52,10 +53,12 @@ jobs:
5253
run: |
5354
New-Item -Path . -Name root -ItemType Directory
5455
git -C root init
55-
git -C root set-remote origin [email protected]:compnerd/swift-win32.git
56-
swift doc generate Sources\SwiftWin32\CoreGraphics --module-name CoreGraphics --output root\CoreGraphics --format html --base-url https://compnerd.github.io/swift-win32/CoreGraphics
56+
git -C root config --local user.email "[email protected]"
57+
git -C root config --local user.email "Saleem Abdulrasool"
58+
git -C root remote add origin [email protected]:compnerd/swift-win32.git
59+
swift doc generate Sources\SwiftWin32\CG --module-name CoreGraphics --output root\CoreGraphics --format html --base-url https://compnerd.github.io/swift-win32/CoreGraphics
5760
swift doc generate Sources\SwiftWin32 --module-name SwiftWin32 --output root\SwiftWin32 --format html --base-url https://compnerd.github.io/swift-win32/SwiftWin32
5861
swift doc generate Sources\SwiftWin32UI --module-name SwiftWin32UI --output root\SwiftWin32UI --format html --base-url https://compnerd.github.io/swift-win32/SwiftWin32UI
59-
git -C root add .
62+
git -C root add --all
6063
git -C root commit -m "refresh content"
61-
git -C root push origin "+HEAD:gh-pages"
64+
git -C root push origin "+HEAD:refs/heads/gh-pages"

0 commit comments

Comments
 (0)