Locates the latest version of Microsoft's signtool installed and adds it to the runner's PATH
Use this action to locate signtool.exe
and add it to the PATH
environment variable for easier execution throughout the rest of a workflow's job.
**This action will only run on Windows runners, it will fail fast otherwise.
Refer to Microsoft's documentation for more on signtool and how it works.
on: push
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: KamaranL/add-signtool-action@v1
id: signtool
- run: Write-Output "$env:SIGNTOOL_DIR"
# prints out the absolute path to the located signtool executable
shell: pwsh
env:
SIGNTOOL_DIR: ${{ steps.signtool.outputs.signtool-x64 }}
This action outputs the path of the located signtool into the output key signtool-${{ runner.arch }}
.
${{ runner.arch }} | outputs key |
---|---|
x64 | signtool-x64 |
arm | signtool-arm |