Skip to content

Commit 4c3728b

Browse files
authored
Update swift-doc.yml
1 parent 0a72e74 commit 4c3728b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/swift-doc.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,21 @@ jobs:
5555
- name: build
5656
run: |
5757
swift build -c release -Xlinker -LC:\Library\graphviz-development\usr\lib -Xcc -DLIBXML_STATIC -Xcc -IC:\Library\libxml2-development\usr\include -Xcc -IC:\Library\libxml2-development\usr\include\libxml2 -Xlinker -LC:\Library\libxml2-development\usr\lib -Xcc -IC:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\include -Xlinker -LC:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\lib
58+
59+
- uses: actions/create-release@v1
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
id: create_release
63+
with:
64+
draft: true
65+
prerelease: true
66+
release_name: swift-doc-${{ matrix.tag }}
67+
tag_name: swift-doc-${{ matrix.tag }}
68+
- uses: actions/upload-release-asset@v1.0.2
69+
env:
70+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
with:
72+
asset_content_type: application/octet-stream
73+
asset_name: swift-doc.exe
74+
asset_path: .build\x86_64-unknown-windows-msvc\release\swift-doc.exe
75+
upload_url: ${{ steps.create_release.outputs.upload_url }}

0 commit comments

Comments
 (0)