Compare commits

..
3 Commits
3 changed files with 17 additions and 70 deletions
+15 -67
View File
@@ -60,7 +60,6 @@ jobs:
run: Src\Setup\BuildBinaries.bat run: Src\Setup\BuildBinaries.bat
- name: Upload binaries - name: Upload binaries
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master' # Only manual master builds
id: upload-binaries id: upload-binaries
uses: actions/upload-artifact@v7 uses: actions/upload-artifact@v7
with: with:
@@ -70,10 +69,8 @@ jobs:
!Src/Setup/Output/*.skin !Src/Setup/Output/*.skin
!Src/Setup/Output/*.skin7 !Src/Setup/Output/*.skin7
!Src/Setup/Output/*.zip !Src/Setup/Output/*.zip
retention-days: 1
- name: Sign binaries with SignPath - name: Sign binaries with SignPath
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master' # Only manual master builds
uses: signpath/github-action-submit-signing-request@v2 uses: signpath/github-action-submit-signing-request@v2
with: with:
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}' api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
@@ -92,17 +89,14 @@ jobs:
run: Src\Setup\_BuildEnglish.bat run: Src\Setup\_BuildEnglish.bat
- name: Upload installers - name: Upload installers
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master' # Only manual master builds
id: upload-installers id: upload-installers
uses: actions/upload-artifact@v7 uses: actions/upload-artifact@v7
with: with:
name: MSI name: MSI
path: | path: |
Src/Setup/Temp/*.msi Src/Setup/Temp/*.msi
retention-days: 1
- name: Sign installers with SignPath - name: Sign installers with SignPath
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master' # Only manual master builds
uses: signpath/github-action-submit-signing-request@v2 uses: signpath/github-action-submit-signing-request@v2
with: with:
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}' api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
@@ -114,64 +108,40 @@ jobs:
wait-for-completion: true wait-for-completion: true
output-artifact-directory: 'Src/Setup/Temp/' output-artifact-directory: 'Src/Setup/Temp/'
- name: Build setup and symbols - name: Build final
shell: cmd shell: cmd
env: env:
CS_VERSION: ${{ steps.versioning.outputs.NEW_VERSION }} CS_VERSION: ${{ steps.versioning.outputs.NEW_VERSION }}
run: Src\Setup\BuildArchives.bat run: Src\Setup\BuildArchives.bat
- name: Upload symbols - name: Upload final
id: upload-final
uses: actions/upload-artifact@v7 uses: actions/upload-artifact@v7
with: with:
name: Final
path: | path: |
Src/Setup/Final/OpenShellSymbols*.7z Src/Setup/Final/
archive: false !Src/Setup/Final/OpenShellLoc.zip
- name: Upload utility - name: Sign final artifacts with SignPath
uses: actions/upload-artifact@v7
with:
path: |
Src/Setup/Final/Utility.exe
archive: false
- name: Upload setup
id: upload-setup
uses: actions/upload-artifact@v7
with:
path: |
Src/Setup/Final/OpenShellSetup*.exe
archive: false
- name: Sign setup with SignPath
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master' # Only manual master builds
uses: signpath/github-action-submit-signing-request@v2 uses: signpath/github-action-submit-signing-request@v2
with: with:
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}' api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
organization-id: 'b34b60e3-e5bf-4a6e-a13c-dcf641b4362c' organization-id: 'b34b60e3-e5bf-4a6e-a13c-dcf641b4362c'
project-slug: 'Open-Shell-Menu' project-slug: 'Open-Shell-Menu'
signing-policy-slug: 'test-signing' signing-policy-slug: 'test-signing'
github-artifact-id: '${{ steps.upload-setup.outputs.artifact-id }}' artifact-configuration-slug: 'Final'
github-artifact-id: '${{ steps.upload-final.outputs.artifact-id }}'
wait-for-completion: true wait-for-completion: true
skip-decompress: true
output-artifact-directory: 'Src/Setup/Final/' output-artifact-directory: 'Src/Setup/Final/'
# `overwrite: true` doesn't work with `archive: false`, so we have to delete the original first - name: Upload final (signed)
# https://github.com/actions/upload-artifact/issues/769
# https://github.com/actions/upload-artifact/issues/785
- name: Delete setup
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master' # Only manual master builds
uses: geekyeggo/delete-artifact@v6
with:
name: OpenShellSetup*.exe
- name: Upload setup (signed)
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master' # Only manual master builds
uses: actions/upload-artifact@v7 uses: actions/upload-artifact@v7
with: with:
name: Final-signed
path: | path: |
Src/Setup/Final/OpenShellSetup*.exe Src/Setup/Final/
archive: false !Src/Setup/Final/OpenShellLoc.zip
overwrite: true
release: release:
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master' # Only manual master builds if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master' # Only manual master builds
@@ -180,29 +150,7 @@ jobs:
permissions: permissions:
contents: write # Elevate permissions ONLY for this job contents: write # Elevate permissions ONLY for this job
steps: steps:
- name: Download setup - name: Download artifacts
uses: actions/download-artifact@v8 uses: actions/download-artifact@v8
with: with:
pattern: OpenShellSetup*.exe name: OpenShell
- name: Download symbols
uses: actions/download-artifact@v8
with:
pattern: OpenShellSymbols*.7z
- name: Download utility
uses: actions/download-artifact@v8
with:
pattern: Utility.exe
- name: Create GitHub Release
uses: softprops/action-gh-release@v3
with:
tag_name: v${{ needs.build.outputs.new_version }}
name: ${{ needs.build.outputs.new_version }}
generate_release_notes: true
prerelease: true
files: |
OpenShellSetup*.exe
OpenShellSymbols_*.7z
Utility.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+2 -2
View File
@@ -160,10 +160,10 @@ cd ..
cd Setup cd Setup
copy /B Output\Utility.exe .\Final > nul copy /B ..\..\build\bin\Release\Utility.exe .\Final > nul
if defined APPVEYOR ( if defined APPVEYOR (
appveyor PushArtifact Output\Utility.exe appveyor PushArtifact ..\..\build\bin\Release\Utility.exe
) )
exit /b 0 exit /b 0
-1
View File
@@ -55,7 +55,6 @@ copy /B ..\..\build\bin\Setup\StartMenuHelper32.dll Output > nul
copy /B ..\..\build\bin\Release\Update.exe Output > nul copy /B ..\..\build\bin\Release\Update.exe Output > nul
copy /B ..\..\build\bin\Release\DesktopToasts.dll Output > nul copy /B ..\..\build\bin\Release\DesktopToasts.dll Output > nul
copy /B ..\..\build\bin\Release\SetupHelper.exe Output > nul copy /B ..\..\build\bin\Release\SetupHelper.exe Output > nul
copy /B ..\..\build\bin\Release\Utility.exe Output > nul
copy /B ..\..\build\bin\SetupARM64\ClassicExplorer64.dll Output\ARM64 > nul copy /B ..\..\build\bin\SetupARM64\ClassicExplorer64.dll Output\ARM64 > nul
copy /B ..\..\build\bin\SetupARM64\ClassicIEDLL_64.dll Output\ARM64 > nul copy /B ..\..\build\bin\SetupARM64\ClassicIEDLL_64.dll Output\ARM64 > nul