From 47588109df7f2b594764fc93c3fe6bdd3555c3f9 Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 22:36:43 +0300 Subject: [PATCH 01/23] actions: init build --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..d285dcd8 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +name: Patch + +on: push # to debug +# on: +# push: +# tags: +# - '*.*.*' + +jobs: + patch: + runs-on: windows-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v2 + - name: Build 5.x + env: + BUILD_DIR = "Sophia-ps5-${{ github.ref }}" + run: + mkdir $BUILD_DIR + cp -R Sophia/* $BUILD_DIR + del -Force -Recurse "$BUILD_DIR/PowerShell 7.x" + gci -Recurse + From 4e718a206a8d03f97d4f87f336dd2fa2e74bbdcc Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 22:39:33 +0300 Subject: [PATCH 02/23] fix env --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d285dcd8..3d78fcd4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v2 - name: Build 5.x env: - BUILD_DIR = "Sophia-ps5-${{ github.ref }}" + BUILD_DIR: Sophia-ps5-${{ github.ref }} run: mkdir $BUILD_DIR cp -R Sophia/* $BUILD_DIR From ac9c5f626ba417fe5e2076cf264f4b326cb15a7f Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 22:45:34 +0300 Subject: [PATCH 03/23] check envs --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3d78fcd4..c01fea51 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,8 @@ jobs: - name: Build 5.x env: BUILD_DIR: Sophia-ps5-${{ github.ref }} - run: + run: | + Get-ChildItem Env: mkdir $BUILD_DIR cp -R Sophia/* $BUILD_DIR del -Force -Recurse "$BUILD_DIR/PowerShell 7.x" From f1263387999406c60ab9fa6cfdaf6c1e96da507f Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 22:52:50 +0300 Subject: [PATCH 04/23] check envs --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c01fea51..99381721 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,6 +15,9 @@ jobs: - name: Build 5.x env: BUILD_DIR: Sophia-ps5-${{ github.ref }} + SOURCE_NAME: ${{ github.ref }} -replace ‘refs/\w+/’, ‘’ + SOURCE_BRANCH: ${{ github.ref }} -replace ‘refs/heads/’, ‘’ + SOURCE_TAG: ${{ github.ref }} -replace ‘refs/tags/’, ‘’ run: | Get-ChildItem Env: mkdir $BUILD_DIR From 2a9be0cee64fa4270170a8ad7965e40c484bb22b Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 23:00:53 +0300 Subject: [PATCH 05/23] build_dir fix2 --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 99381721..8eb112f6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,12 +13,12 @@ jobs: steps: - uses: actions/checkout@v2 - name: Build 5.x - env: - BUILD_DIR: Sophia-ps5-${{ github.ref }} - SOURCE_NAME: ${{ github.ref }} -replace ‘refs/\w+/’, ‘’ - SOURCE_BRANCH: ${{ github.ref }} -replace ‘refs/heads/’, ‘’ - SOURCE_TAG: ${{ github.ref }} -replace ‘refs/tags/’, ‘’ run: | + if ($env:GITHUB_REF -eq "refs/heads/master") { + BUILD_DIR = "master" + } else { + BUILD_DIR = ${env:GITHUB_REF} -replace ‘refs/tags/’, ‘’ + } Get-ChildItem Env: mkdir $BUILD_DIR cp -R Sophia/* $BUILD_DIR From 52ffe91a5d06580e4f5decb4710f9814139a3584 Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 23:02:28 +0300 Subject: [PATCH 06/23] build_dir fix3 --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8eb112f6..c20df3dd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,9 +15,9 @@ jobs: - name: Build 5.x run: | if ($env:GITHUB_REF -eq "refs/heads/master") { - BUILD_DIR = "master" + $BUILD_DIR = "master" } else { - BUILD_DIR = ${env:GITHUB_REF} -replace ‘refs/tags/’, ‘’ + $BUILD_DIR = ${env:GITHUB_REF} -replace ‘refs/tags/’, ‘’ } Get-ChildItem Env: mkdir $BUILD_DIR From 7dd59d150e807813cb8aab1f2b21c7be742da8cb Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 23:06:23 +0300 Subject: [PATCH 07/23] build_dir fix4: find output --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c20df3dd..868a69e9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,5 +23,5 @@ jobs: mkdir $BUILD_DIR cp -R Sophia/* $BUILD_DIR del -Force -Recurse "$BUILD_DIR/PowerShell 7.x" - gci -Recurse + gci -Recurse | select FullName From db87811b3a01ae4374dec8b5d721a38d720bfd82 Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 23:06:55 +0300 Subject: [PATCH 08/23] build_dir fix4: find output2 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 868a69e9..455bfc33 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,5 +23,5 @@ jobs: mkdir $BUILD_DIR cp -R Sophia/* $BUILD_DIR del -Force -Recurse "$BUILD_DIR/PowerShell 7.x" - gci -Recurse | select FullName + gci -Recurse $BUILD_DIR | select FullName From 71de550db41c4de7d98c6b4348be4a9f14d29175 Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 23:09:41 +0300 Subject: [PATCH 09/23] fix base dir name --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 455bfc33..8455f016 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,10 +14,11 @@ jobs: - uses: actions/checkout@v2 - name: Build 5.x run: | + $BUILD_DIR = "Sophia-" if ($env:GITHUB_REF -eq "refs/heads/master") { - $BUILD_DIR = "master" + $BUILD_DIR .= "master" } else { - $BUILD_DIR = ${env:GITHUB_REF} -replace ‘refs/tags/’, ‘’ + $BUILD_DIR .= ${env:GITHUB_REF} -replace ‘refs/tags/’, ‘’ } Get-ChildItem Env: mkdir $BUILD_DIR From 759f72bd746b01bed386bfaeb7fbed3fa59745b3 Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 23:13:37 +0300 Subject: [PATCH 10/23] trying to switch powershell --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8455f016..b8051da4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,6 +13,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Build 5.x + shell: pwsh run: | $BUILD_DIR = "Sophia-" if ($env:GITHUB_REF -eq "refs/heads/master") { @@ -25,4 +26,5 @@ jobs: cp -R Sophia/* $BUILD_DIR del -Force -Recurse "$BUILD_DIR/PowerShell 7.x" gci -Recurse $BUILD_DIR | select FullName + From f8db70a500ee3ff01995ac15f6d097bb85ae5630 Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 23:14:57 +0300 Subject: [PATCH 11/23] fix pwsh 2 --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b8051da4..b35ebfa1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,13 +13,13 @@ jobs: steps: - uses: actions/checkout@v2 - name: Build 5.x - shell: pwsh + # shell: pwsh run: | $BUILD_DIR = "Sophia-" if ($env:GITHUB_REF -eq "refs/heads/master") { - $BUILD_DIR .= "master" + $BUILD_DIR += "master" } else { - $BUILD_DIR .= ${env:GITHUB_REF} -replace ‘refs/tags/’, ‘’ + $BUILD_DIR += ${env:GITHUB_REF} -replace ‘refs/tags/’, ‘’ } Get-ChildItem Env: mkdir $BUILD_DIR From 5240772b8c042a3538db1846253c6f44299edc83 Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 23:26:39 +0300 Subject: [PATCH 12/23] release upload --- .github/workflows/build.yml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b35ebfa1..96f84672 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,6 @@ jobs: steps: - uses: actions/checkout@v2 - name: Build 5.x - # shell: pwsh run: | $BUILD_DIR = "Sophia-" if ($env:GITHUB_REF -eq "refs/heads/master") { @@ -21,10 +20,28 @@ jobs: } else { $BUILD_DIR += ${env:GITHUB_REF} -replace ‘refs/tags/’, ‘’ } - Get-ChildItem Env: + # Get-ChildItem Env: mkdir $BUILD_DIR cp -R Sophia/* $BUILD_DIR del -Force -Recurse "$BUILD_DIR/PowerShell 7.x" - gci -Recurse $BUILD_DIR | select FullName - - + # gci -Recurse $BUILD_DIR | select FullName + iwr http://www.technosys.net/download.aspx?file=syspin.exe -OutFile $BUILD_DIR/syspin.exe + Compress-Archive -Path $BUILD_DIR -DestinationPath $BUILD_DIR.zip + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: true + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: Sophia-*.zip + tag: ${{ github.ref }} + overwrite: true + asset_content_type: application/zip From cafc9fc6808272efd7b0d4f97b9feee68f23d242 Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 23:31:04 +0300 Subject: [PATCH 13/23] echo build_dir --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 96f84672..d169972b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,7 @@ jobs: } # Get-ChildItem Env: mkdir $BUILD_DIR + echo $BUILD_DIR cp -R Sophia/* $BUILD_DIR del -Force -Recurse "$BUILD_DIR/PowerShell 7.x" # gci -Recurse $BUILD_DIR | select FullName From 31bb5c33aa88bf4a88b6100fc9b327eda0c7f0ab Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 23:33:15 +0300 Subject: [PATCH 14/23] echo ZIP --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d169972b..94ebe51c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,13 +21,15 @@ jobs: $BUILD_DIR += ${env:GITHUB_REF} -replace ‘refs/tags/’, ‘’ } # Get-ChildItem Env: + $ZIP="$BUILD_DIR.zip" mkdir $BUILD_DIR echo $BUILD_DIR + echo $ZIP cp -R Sophia/* $BUILD_DIR del -Force -Recurse "$BUILD_DIR/PowerShell 7.x" # gci -Recurse $BUILD_DIR | select FullName iwr http://www.technosys.net/download.aspx?file=syspin.exe -OutFile $BUILD_DIR/syspin.exe - Compress-Archive -Path $BUILD_DIR -DestinationPath $BUILD_DIR.zip + Compress-Archive -Path $BUILD_DIR -DestinationPath "$ZIP.zip" - name: Create Release id: create_release uses: actions/create-release@v1 From 04afb8885553d719331e0653a8a245eddae376fa Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 23:36:59 +0300 Subject: [PATCH 15/23] file_glob: true --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 94ebe51c..608c594d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,3 +48,4 @@ jobs: tag: ${{ github.ref }} overwrite: true asset_content_type: application/zip + file_glob: true From 63f05715ae3231f0bf14144ba2dd8dd306f26cf1 Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 23:39:47 +0300 Subject: [PATCH 16/23] just upload --- .github/workflows/build.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 608c594d..5e342b7e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,16 +30,16 @@ jobs: # gci -Recurse $BUILD_DIR | select FullName iwr http://www.technosys.net/download.aspx?file=syspin.exe -OutFile $BUILD_DIR/syspin.exe Compress-Archive -Path $BUILD_DIR -DestinationPath "$ZIP.zip" - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: true + # - name: Create Release + # id: create_release + # uses: actions/create-release@v1 + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # with: + # tag_name: ${{ github.ref }} + # release_name: Release ${{ github.ref }} + # draft: false + # prerelease: true - name: Upload binaries to release uses: svenstaro/upload-release-action@v2 with: From cc05237078e95e6e3e3f8734d806d8d92b642a50 Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 23:42:19 +0300 Subject: [PATCH 17/23] zip ext fix --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5e342b7e..aa3fe549 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,7 +29,7 @@ jobs: del -Force -Recurse "$BUILD_DIR/PowerShell 7.x" # gci -Recurse $BUILD_DIR | select FullName iwr http://www.technosys.net/download.aspx?file=syspin.exe -OutFile $BUILD_DIR/syspin.exe - Compress-Archive -Path $BUILD_DIR -DestinationPath "$ZIP.zip" + Compress-Archive -Path $BUILD_DIR -DestinationPath $ZIP # - name: Create Release # id: create_release # uses: actions/create-release@v1 From 45f6e2889ae9daaa4cd2f3cf366bbab3139563e2 Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 23:44:45 +0300 Subject: [PATCH 18/23] ps5 suffix --- .github/workflows/build.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aa3fe549..63d56342 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v2 - name: Build 5.x run: | - $BUILD_DIR = "Sophia-" + $BUILD_DIR = "Sophia-ps5-" if ($env:GITHUB_REF -eq "refs/heads/master") { $BUILD_DIR += "master" } else { @@ -27,20 +27,9 @@ jobs: echo $ZIP cp -R Sophia/* $BUILD_DIR del -Force -Recurse "$BUILD_DIR/PowerShell 7.x" - # gci -Recurse $BUILD_DIR | select FullName iwr http://www.technosys.net/download.aspx?file=syspin.exe -OutFile $BUILD_DIR/syspin.exe Compress-Archive -Path $BUILD_DIR -DestinationPath $ZIP - # - name: Create Release - # id: create_release - # uses: actions/create-release@v1 - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # tag_name: ${{ github.ref }} - # release_name: Release ${{ github.ref }} - # draft: false - # prerelease: true - - name: Upload binaries to release + - name: Upload to release uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} From 447a4e69e755f4fdba35701cf375394e1e8730ab Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 23:50:25 +0300 Subject: [PATCH 19/23] PS7 --- .github/workflows/build.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 63d56342..36cfe95b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v2 - name: Build 5.x run: | - $BUILD_DIR = "Sophia-ps5-" + $BUILD_DIR = "Sophia-" if ($env:GITHUB_REF -eq "refs/heads/master") { $BUILD_DIR += "master" } else { @@ -29,6 +29,24 @@ jobs: del -Force -Recurse "$BUILD_DIR/PowerShell 7.x" iwr http://www.technosys.net/download.aspx?file=syspin.exe -OutFile $BUILD_DIR/syspin.exe Compress-Archive -Path $BUILD_DIR -DestinationPath $ZIP + - name: Build 7.x + run: | + $BUILD_DIR = "Sophia-PS7-" + if ($env:GITHUB_REF -eq "refs/heads/master") { + $BUILD_DIR += "master" + } else { + $BUILD_DIR += ${env:GITHUB_REF} -replace ‘refs/tags/’, ‘’ + } + # Get-ChildItem Env: + $ZIP="$BUILD_DIR.zip" + mkdir $BUILD_DIR + echo $BUILD_DIR + echo $ZIP + cp -R Sophia/* $BUILD_DIR + mv -Force "$BUILD_DIR/Sophia/PowerShell 7.x/*" "$BUILD_DIR/Sophia/*" + del "$BUILD_DIR/Sophia/PowerShell 7.x/*" + iwr http://www.technosys.net/download.aspx?file=syspin.exe -OutFile $BUILD_DIR/syspin.exe + Compress-Archive -Path $BUILD_DIR -DestinationPath $ZIP - name: Upload to release uses: svenstaro/upload-release-action@v2 with: From 71d795cf5901a63f41cab18fcdb2d0fb0762c7e2 Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 23:52:59 +0300 Subject: [PATCH 20/23] fix PS7 --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 36cfe95b..554b6068 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,8 +43,8 @@ jobs: echo $BUILD_DIR echo $ZIP cp -R Sophia/* $BUILD_DIR - mv -Force "$BUILD_DIR/Sophia/PowerShell 7.x/*" "$BUILD_DIR/Sophia/*" - del "$BUILD_DIR/Sophia/PowerShell 7.x/*" + mv -Force "$BUILD_DIR/PowerShell 7.x/*" $BUILD_DIR + del "$BUILD_DIR/PowerShell 7.x/" iwr http://www.technosys.net/download.aspx?file=syspin.exe -OutFile $BUILD_DIR/syspin.exe Compress-Archive -Path $BUILD_DIR -DestinationPath $ZIP - name: Upload to release From 1c533e841182f055aeae5c60ee9988a641604d0d Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sun, 24 Jan 2021 23:58:03 +0300 Subject: [PATCH 21/23] LTSC --- .github/workflows/build.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 554b6068..3228dc16 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,6 @@ jobs: } else { $BUILD_DIR += ${env:GITHUB_REF} -replace ‘refs/tags/’, ‘’ } - # Get-ChildItem Env: $ZIP="$BUILD_DIR.zip" mkdir $BUILD_DIR echo $BUILD_DIR @@ -37,7 +36,6 @@ jobs: } else { $BUILD_DIR += ${env:GITHUB_REF} -replace ‘refs/tags/’, ‘’ } - # Get-ChildItem Env: $ZIP="$BUILD_DIR.zip" mkdir $BUILD_DIR echo $BUILD_DIR @@ -47,6 +45,21 @@ jobs: del "$BUILD_DIR/PowerShell 7.x/" iwr http://www.technosys.net/download.aspx?file=syspin.exe -OutFile $BUILD_DIR/syspin.exe Compress-Archive -Path $BUILD_DIR -DestinationPath $ZIP + - name: Build LTSC + run: | + $BUILD_DIR = "Sophia-LTSC-" + if ($env:GITHUB_REF -eq "refs/heads/master") { + $BUILD_DIR += "master" + } else { + $BUILD_DIR += ${env:GITHUB_REF} -replace ‘refs/tags/’, ‘’ + } + $ZIP="$BUILD_DIR.zip" + mkdir $BUILD_DIR + echo $BUILD_DIR + echo $ZIP + cp -R LTSC/* $BUILD_DIR + iwr http://www.technosys.net/download.aspx?file=syspin.exe -OutFile $BUILD_DIR/syspin.exe + Compress-Archive -Path $BUILD_DIR -DestinationPath $ZIP - name: Upload to release uses: svenstaro/upload-release-action@v2 with: From 75d626b2a14f3bd66597febe39d2bae38f4a6a62 Mon Sep 17 00:00:00 2001 From: inv2004 Date: Mon, 25 Jan 2021 00:02:05 +0300 Subject: [PATCH 22/23] fix zip name --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3228dc16..6c838a29 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,12 +30,13 @@ jobs: Compress-Archive -Path $BUILD_DIR -DestinationPath $ZIP - name: Build 7.x run: | - $BUILD_DIR = "Sophia-PS7-" + $BUILD_DIR = "Sophia-" if ($env:GITHUB_REF -eq "refs/heads/master") { $BUILD_DIR += "master" } else { $BUILD_DIR += ${env:GITHUB_REF} -replace ‘refs/tags/’, ‘’ } + $BUILD_DIR += "-PS7" $ZIP="$BUILD_DIR.zip" mkdir $BUILD_DIR echo $BUILD_DIR @@ -47,12 +48,13 @@ jobs: Compress-Archive -Path $BUILD_DIR -DestinationPath $ZIP - name: Build LTSC run: | - $BUILD_DIR = "Sophia-LTSC-" + $BUILD_DIR = "Sophia-" if ($env:GITHUB_REF -eq "refs/heads/master") { $BUILD_DIR += "master" } else { $BUILD_DIR += ${env:GITHUB_REF} -replace ‘refs/tags/’, ‘’ } + $BUILD_DIR += "-LTSC" $ZIP="$BUILD_DIR.zip" mkdir $BUILD_DIR echo $BUILD_DIR From 536e1f5b589bf8287b5995e1b53666bc2beed3d6 Mon Sep 17 00:00:00 2001 From: inv2004 Date: Mon, 25 Jan 2021 00:05:07 +0300 Subject: [PATCH 23/23] tag mask --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6c838a29..07311266 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,10 @@ name: Patch -on: push # to debug -# on: -# push: -# tags: -# - '*.*.*' +on: + push: + tags: + - '*.*.*' + - '*.*' jobs: patch: