Fix release signing: upload also archive that is signed.
This commit is contained in:
		
					parent
					
						
							
								25bfad452c
							
						
					
				
			
			
				commit
				
					
						25e69d1302
					
				
			
		
					 2 changed files with 14 additions and 0 deletions
				
			
		| 
						 | 
					@ -217,6 +217,13 @@ eof
 | 
				
			||||||
            | python3 -c 'import json; import sys; print(json.loads(sys.stdin.read())["id"])') \
 | 
					            | python3 -c 'import json; import sys; print(json.loads(sys.stdin.read())["id"])') \
 | 
				
			||||||
            || exit 1
 | 
					            || exit 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        # upload archive and then signature
 | 
				
			||||||
 | 
					        curl -H "Authorization: token ${token}" \
 | 
				
			||||||
 | 
					             -H "Accept: application/vnd.github.manifold-preview" \
 | 
				
			||||||
 | 
					             -H "Content-Type: application/x-gtar" \
 | 
				
			||||||
 | 
					             --data-binary @${archivename} \
 | 
				
			||||||
 | 
					            "https://uploads.github.com/repos/ungleich/cdist/releases/${repoid}/assets?name=${archivename}" \
 | 
				
			||||||
 | 
					            || exit 1
 | 
				
			||||||
        curl -H "Authorization: token ${token}" \
 | 
					        curl -H "Authorization: token ${token}" \
 | 
				
			||||||
             -H "Accept: application/vnd.github.manifold-preview" \
 | 
					             -H "Accept: application/vnd.github.manifold-preview" \
 | 
				
			||||||
             -H "Content-Type: application/pgp-signature" \
 | 
					             -H "Content-Type: application/pgp-signature" \
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -252,6 +252,13 @@ eof
 | 
				
			||||||
            | python3 -c 'import json; import sys; print(json.loads(sys.stdin.read())["id"])') \
 | 
					            | python3 -c 'import json; import sys; print(json.loads(sys.stdin.read())["id"])') \
 | 
				
			||||||
            || exit 1
 | 
					            || exit 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        # upload archive and then signature
 | 
				
			||||||
 | 
					        curl -H "Authorization: token ${token}" \
 | 
				
			||||||
 | 
					             -H "Accept: application/vnd.github.manifold-preview" \
 | 
				
			||||||
 | 
					             -H "Content-Type: application/x-gtar" \
 | 
				
			||||||
 | 
					             --data-binary @${archivename} \
 | 
				
			||||||
 | 
					            "https://uploads.github.com/repos/ungleich/cdist/releases/${repoid}/assets?name=${archivename}" \
 | 
				
			||||||
 | 
					            || exit 1
 | 
				
			||||||
        curl -H "Authorization: token ${token}" \
 | 
					        curl -H "Authorization: token ${token}" \
 | 
				
			||||||
             -H "Accept: application/vnd.github.manifold-preview" \
 | 
					             -H "Accept: application/vnd.github.manifold-preview" \
 | 
				
			||||||
             -H "Content-Type: application/pgp-signature" \
 | 
					             -H "Content-Type: application/pgp-signature" \
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue