mirror of
https://github.com/tiny-craft/tiny-rdm.git
synced 2025-09-27 03:26:00 +08:00
chore: update package action
This commit is contained in:
@@ -52,7 +52,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: stable
|
go-version: stable
|
||||||
|
|
||||||
|
2
.github/workflows/release-linux.yaml
vendored
2
.github/workflows/release-linux.yaml
vendored
@@ -52,7 +52,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: stable
|
go-version: stable
|
||||||
|
|
||||||
|
2
.github/workflows/release-macos.yaml
vendored
2
.github/workflows/release-macos.yaml
vendored
@@ -44,7 +44,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: stable
|
go-version: stable
|
||||||
|
|
||||||
|
20
.github/workflows/release-windows.yaml
vendored
20
.github/workflows/release-windows.yaml
vendored
@@ -50,7 +50,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: stable
|
go-version: stable
|
||||||
|
|
||||||
@@ -104,20 +104,16 @@ jobs:
|
|||||||
-nsis -webview2 embed \
|
-nsis -webview2 embed \
|
||||||
-ldflags "-X main.version=v${{ steps.normalise_version.outputs.version }}"
|
-ldflags "-X main.version=v${{ steps.normalise_version.outputs.version }}"
|
||||||
|
|
||||||
- name: Codesign Windows NSIS installer
|
- name: Sign the installer
|
||||||
shell: powershell
|
uses: dlemstra/code-sign-action@v1
|
||||||
working-directory: ./build/bin
|
with:
|
||||||
run: |
|
certificate: ${{ secrets.WIN_SIGNING_CERT }}
|
||||||
echo "Creating certificate file"
|
password: ${{ secrets.WIN_SIGNING_CERT_PASSWORD }}
|
||||||
New-Item -ItemType directory -Path certificate
|
folder: ./build/bin
|
||||||
Set-Content -Path certificate\certificate.txt -Value '${{ secrets.WIN_SIGNING_CERT }}'
|
|
||||||
certutil -decode certificate\certificate.txt certificate\certificate.pfx
|
|
||||||
echo "Signing TinyRDM installer"
|
|
||||||
& 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe' sign /td sha256 /tr http://timestamp.sectigo.com/?td=sha256 /f certificate\certificate.pfx /p '${{ secrets.WIN_SIGNING_CERT_PASSWORD }}' 'TinyRDM-${{ steps.normalise_platform_name.outputs.pname }}-installer.exe'
|
|
||||||
|
|
||||||
- name: Rename installer
|
- name: Rename installer
|
||||||
working-directory: ./build/bin
|
working-directory: ./build/bin
|
||||||
run: Rename-Item -Path "TinyRDM-${{ steps.normalise_platform_name.outputs.pname }}-installer.exe" -NewName "TinyRDM_Setup_${{ steps.normalise_version.outputs.version }}_${{ steps.normalise_platform.outputs.tag }}.exe"
|
run: Rename-Item -Path "Tiny RDM.exe" -NewName "TinyRDM_Setup_${{ steps.normalise_version.outputs.version }}_${{ steps.normalise_platform.outputs.tag }}.exe"
|
||||||
|
|
||||||
- name: Upload release asset (Installer)
|
- name: Upload release asset (Installer)
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
|
Reference in New Issue
Block a user