Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
spraints committed Nov 19, 2013
1 parent 206766d commit 61d6e81
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Release.proj
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@

<Target Name="GitHubRelease" DependsOnTargets="GitHubCreateRelease; UpdateWebSite;">
</Target>

<Import Project="Auth.targets" Condition="Exists('Auth.targets')" />

<Target Name="GitHubCreateRelease" DependsOnTargets="MSBuildCommunityTasks">
<Error Text="You must set a github.com auth token in auth.targets (see auth.targets.example)" Condition="'$(GitHubAuthToken)' == ''" />
<CreateRelease Repository="$(GitHubUser)/$(GitHubProject)" TagName="v$(Version)" Files="@(ArchiveFile)" OauthToken="$(GitHubAuthToken)" ReleaseNotesFile="$(ReleaseNotes)" >
Expand All @@ -158,10 +160,12 @@
<CallTarget Targets="_CleanWebsiteFolder;" />
<OnError ExecuteTargets="_CleanWebsiteFolder" />
</Target>

<Target Name="_CleanWebsiteFolder">
<RemoveDir Directories="$(WebSiteDir)" />
<RemoveDir Directories="$(WebSiteDir)" />
</Target>

<Target Name="_DeleteRelease">
<Exec Command="curl -X DELETE $(Authentication) https://api.github.com/repos/$(GitHubUser)/$(GitHubProject)/releases/$(IdRelease)" />
<Exec Command="curl -X DELETE $(Authentication) https://api.github.com/repos/$(GitHubUser)/$(GitHubProject)/releases/$(IdRelease)" />
</Target>
</Project>

0 comments on commit 61d6e81

Please sign in to comment.