Changeset 18142 in josm
- Timestamp:
- 2021-08-20T20:51:45+02:00 (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/ant.yml
r18140 r18142 116 116 117 117 - name: Build with Ant 118 env: 119 SIGN_ALIAS: ${{ secrets.SIGN_ALIAS }} 120 SIGN_CERT: ${{ secrets.SIGN_CERT }} 121 SIGN_KEYPASS: ${{ secrets.SIGN_KEYPASS }} 122 SIGN_STOREPASS: ${{ secrets.SIGN_STOREPASS }} 123 SIGN_TSA: ${{ secrets.SIGN_TSA }} 118 124 # Calls ant with -Dreleasebuild=true if we're a 'tested' build 119 125 run: | 126 SIGN_KEYSTORE=certificate.p12 127 echo "$SIGN_CERT" | base64 --decode > $SIGN_KEYSTORE 120 128 if [ "${{ needs.createrelease.outputs.josm_prerelease }}" == "true" ]; then 121 129 ANT="${{ env.ANT_HOME }}/bin/ant" … … 124 132 fi 125 133 $ANT dist 134 rm $SIGN_KEYSTORE 126 135 127 136 - name: Upload jar -
trunk/build.xml
r18072 r18142 41 41 <property name="test.dir" location="${base.dir}/test"/> 42 42 <property name="src.dir" location="${base.dir}/src"/> 43 <condition property="sign.jar"> 44 <and> 45 <isset property="env.SIGN_ALIAS"/> 46 <isset property="env.SIGN_KEYSTORE"/> 47 <isset property="env.SIGN_KEYPASS"/> 48 <isset property="env.SIGN_STOREPASS"/> 49 <isset property="env.SIGN_TSA"/> 50 </and> 51 </condition> 43 52 <condition property="noJavaFX"> 44 53 <or> … … 176 185 </manifest> 177 186 </jar> 187 <!-- Sign jar if all environment variables are set --> 188 <signjar jar="${dist.jar}" alias="${env.SIGN_ALIAS}" tsaurl="${env.SIGN_TSA}" 189 keystore="${env.SIGN_KEYSTORE}" storepass="${env.SIGN_STOREPASS}" keypass="${env.SIGN_KEYPASS}" if:set="sign.jar" /> 178 190 </target> 179 191 <!-- Windows target -->
Note:
See TracChangeset
for help on using the changeset viewer.