mirror of
https://github.com/indetectables-net/toolkit.git
synced 2026-10-29 03:40:53 +00:00
Fixes in sign code
This commit is contained in:
1 parent
2e958e1cce
commit
f580086cae
1 file changed
+8
-23
@@ -12,7 +12,7 @@ on:
|
||||
types: [completed]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
contents: write
|
||||
id-token: write
|
||||
|
||||
jobs:
|
||||
@@ -27,6 +27,7 @@ jobs:
|
||||
id: tag
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
result-encoding: string
|
||||
script: |
|
||||
// grab tag from user input
|
||||
const inputTag = '${{ github.event.inputs.tag }}';
|
||||
@@ -92,27 +93,11 @@ jobs:
|
||||
"$exe"
|
||||
done
|
||||
|
||||
- name: Get release upload URL
|
||||
id: get_release
|
||||
uses: actions/github-script@v7
|
||||
- name: Publish signatures
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
result-encoding: string
|
||||
script: |
|
||||
const release = await github.rest.repos.getReleaseByTag({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
tag: '${{ steps.tag.outputs.result }}'
|
||||
});
|
||||
return release.data.upload_url.replace('{?name,label}','');
|
||||
|
||||
- name: Upload signed assets
|
||||
run: |
|
||||
for sig in artifacts/*.exe.sig; do
|
||||
exe_basename=$(basename "$sig" .sig)
|
||||
gh api --method POST "$UPLOAD_URL" \
|
||||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
||||
-H "Content-Type: application/octet-stream" \
|
||||
--data-binary "@${sig}" \
|
||||
-F name="${exe_basename}.exe.sig"
|
||||
done
|
||||
tag_name: ${{ steps.tag.outputs.result }}
|
||||
files: artifacts/*.exe.sig
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in new issue
Block a user