lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [lucenenet] 02/04: build/Release.targets: Added targets for checking out, signing, and committing release assets to dev/lucenenet
Date Sat, 25 Apr 2020 08:17:51 GMT
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 30e246da16efb613f92e8d5b7371b0e183e1df32
Author: Shad Storhaug <shad@shadstorhaug.com>
AuthorDate: Fri Apr 24 22:31:16 2020 +0700

    build/Release.targets: Added targets for checking out, signing, and committing release
assets to dev/lucenenet
---
 .gitignore            |  5 +++-
 build/Release.targets | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index ce84baa..0cd17bf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -58,4 +58,7 @@ websites/**/docfx.log
 websites/**/lucenetemplate/plugins/*
 websites/apidocs/api/**/*.yml
 websites/apidocs/api/**/*.manifest
-!websites/apidocs/api/toc.yml
\ No newline at end of file
+!websites/apidocs/api/toc.yml
+
+# Apache Releases on Subversion
+svn-*/
\ No newline at end of file
diff --git a/build/Release.targets b/build/Release.targets
index 8e018e4..b6be3af 100644
--- a/build/Release.targets
+++ b/build/Release.targets
@@ -19,6 +19,7 @@
 
 -->
 <Project>
+  
   <PropertyGroup Label="Release Audit Tool Settings">
     <RatDirectory>$(SolutionDir)lib/apache-rat</RatDirectory>
     <RatFile>$(RatDirectory)/apache-rat-0.13.jar</RatFile>
@@ -37,4 +38,85 @@
     <Exec Command="$(RatCommand)" />
     <Message Importance="high" Text="Release Audit Complete"/>
   </Target>
+  
+  <PropertyGroup Label="Apache Subversion Settings">
+    <SvnDevUrl>https://dist.apache.org/repos/dist/dev/lucenenet/</SvnDevUrl>
+    <SvnDevDirectory>$(SolutionDir)svn-dev</SvnDevDirectory>
+    
+    <SvnReleaseUrl>https://dist.apache.org/repos/dist/release/lucenenet/</SvnReleaseUrl>
+    <SvnReleaseDirectory>$(SolutionDir)svn-release</SvnReleaseDirectory>
+  </PropertyGroup>
+
+  <Target Name="CheckoutRelease" Label="Checks out/refreshes the Apache svn release and
dev branches to local directories" Condition="'$(AssemblyName)' == 'Lucene.Net' ">
+    <ItemGroup>
+      <_RequiredProperties Include="SvnDevUrl">
+        <Value>$(SvnDevUrl)</Value>
+      </_RequiredProperties>
+
+      <_RequiredProperties Include="SvnDevDirectory">
+        <Value>$(SvnDevDirectory)</Value>
+      </_RequiredProperties>
+
+      <_RequiredProperties Include="SvnReleaseUrl">
+        <Value>$(SvnReleaseUrl)</Value>
+      </_RequiredProperties>
+
+      <_RequiredProperties Include="SvnReleaseDirectory">
+        <Value>$(SvnReleaseDirectory)</Value>
+      </_RequiredProperties>
+    </ItemGroup>
+
+    <Error Condition =" '%(_RequiredProperties.Value)'=='' "
+          Text=" Missing required property [%(_RequiredProperties.Identity)]" />
+
+    <Exec Command="svn co $(SvnDevUrl) $(SvnDevDirectory)" />
+    <Exec Command="svn co $(SvnReleaseUrl) $(SvnReleaseDirectory)" />
+  </Target>
+
+  <PropertyGroup Label="Release Candidate Settings">
+    <ReleaseFileName>Apache-Lucene.Net-$(PackageVersion)</ReleaseFileName>
+  </PropertyGroup>
+
+  <Target Name="SignReleaseCandidate" Label="Uses GnuPG to Sign a Release before [VOTE]"
Condition="'$(AssemblyName)' == 'Lucene.Net' ">
+    <ItemGroup>
+      <_RequiredProperties Include="ReleaseFileName">
+        <Value>$(ReleaseFileName)</Value>
+      </_RequiredProperties>
+
+      <_RequiredProperties Include="PackageVersion">
+        <Value>$(PackageVersion)</Value>
+      </_RequiredProperties>
+    </ItemGroup>
+
+    <Error Condition =" '%(_RequiredProperties.Value)'=='' "
+          Text=" Missing required property [%(_RequiredProperties.Identity)]" />
+
+    <Exec WorkingDirectory="$(SvnDevDirectory)\$(PackageVersion)" Command="gpg --armor
--output $(ReleaseFileName).bin.zip.asc --detach-sig $(ReleaseFileName).bin.zip" />
+    <Exec WorkingDirectory="$(SvnDevDirectory)\$(PackageVersion)" Command="gpg --print-md
MD5 $(ReleaseFileName).bin.zip &gt; $(ReleaseFileName).bin.zip.md5" />
+    <Exec WorkingDirectory="$(SvnDevDirectory)\$(PackageVersion)" Command="gpg --print-md
SHA512 $(ReleaseFileName).bin.zip &gt; $(ReleaseFileName).bin.zip.sha512" />
+
+    <Exec WorkingDirectory="$(SvnDevDirectory)\$(PackageVersion)" Command="gpg --armor
--output $(ReleaseFileName).src.zip.asc --detach-sig $(ReleaseFileName).src.zip" />
+    <Exec WorkingDirectory="$(SvnDevDirectory)\$(PackageVersion)" Command="gpg --print-md
MD5 $(ReleaseFileName).src.zip &gt; $(ReleaseFileName).src.zip.md5" />
+    <Exec WorkingDirectory="$(SvnDevDirectory)\$(PackageVersion)" Command="gpg --print-md
SHA512 $(ReleaseFileName).src.zip &gt; $(ReleaseFileName).src.zip.sha512" />
+    
+  </Target>
+
+  <Target Name="CommitReleaseCandidate" Label="Commits a release candidate to Subversion
for review before [VOTE]" Condition="'$(AssemblyName)' == 'Lucene.Net' ">
+    <ItemGroup>
+      <_RequiredProperties Include="ReleaseFileName">
+        <Value>$(ReleaseFileName)</Value>
+      </_RequiredProperties>
+
+      <_RequiredProperties Include="PackageVersion">
+        <Value>$(PackageVersion)</Value>
+      </_RequiredProperties>
+    </ItemGroup>
+
+    <Error Condition =" '%(_RequiredProperties.Value)'=='' "
+          Text=" Missing required property [%(_RequiredProperties.Identity)]" />
+
+    <Exec WorkingDirectory="$(SvnDevDirectory)" Command="svn add $(PackageVersion)\" />
+    <Exec WorkingDirectory="$(SvnDevDirectory)" Command="svn commit -m&quot;Added
$(ReleaseFileName) to dev/lucenenet&quot;" />
+  </Target>
+  
 </Project>
\ No newline at end of file


Mime
View raw message