Update to Inno Setup 6.3.1 #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build NuGet package | |
env: | |
INNO_VERSION: 6.3.1 | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build package | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: nuget/setup-nuget@v2 | |
- name: Download Inno Setup installer | |
run: curl -L -o installer.exe http://files.jrsoftware.org/is/6/innosetup-${{ env.INNO_VERSION }}.exe | |
- name: Install Inno Setup | |
run: Start-Process ./installer.exe -NoNewWindow -Wait -ArgumentList "/verysilent /allusers /dir=inst" | |
- name: Download encryption module | |
run: curl -L -o inst/ISCrypt.dll https://jrsoftware.org/download.php/iscrypt.dll | |
- name: List installed files | |
run: gci inst -Recurse -File | |
- name: Build NuGet package | |
run: nuget pack Tools.InnoSetup.nuspec -Verbosity detailed | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: nuget-package | |
path: "*.nupkg" | |
publish: | |
name: Publish release to NuGet | |
if: startsWith(github.ref, 'refs/tags/v') | |
runs-on: windows-latest | |
needs: build | |
steps: | |
- name: Fetch artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: nuget-package | |
- uses: nuget/setup-nuget@v2 | |
with: | |
nuget-api-key: ${{ secrets.NUGET_API_KEY }} | |
nuget-api-key-source: https://www.nuget.org/api/v2/package | |
- name: Publish to NuGet | |
run: nuget push *.nupkg -Source https://www.nuget.org/api/v2/package |