Should work :fingerscrossed:
Some checks failed
Actions Testing Workflow / build (push) Failing after 25s
Some checks failed
Actions Testing Workflow / build (push) Failing after 25s
This commit is contained in:
parent
cd4c7ac4fc
commit
866dbd9c6e
@ -38,10 +38,11 @@ jobs:
|
|||||||
- name: Prepare artifacts
|
- name: Prepare artifacts
|
||||||
run: |
|
run: |
|
||||||
echo "Current working directory: $PWD"
|
echo "Current working directory: $PWD"
|
||||||
Get-ChildItem -Path .\artifacts\ -Recurse | Remove-Item -force -recurse
|
Get-ChildItem -Path artifacts -Recurse | Remove-Item -force -recurse
|
||||||
Remove-Item .\artifacts\ -Force
|
if (Test-Path -Path .\artifacts) { Remove-Item -Path .\artifacts -Recurse -Force }
|
||||||
$version = (Select-String -Path "build.gradle" -Pattern "version" | Where-Object { $_ -notmatch "id" -and $_ -notmatch ":" } | ForEach-Object { [regex]::Match($_, "'(.*?)'").Groups[1].Value })
|
$version = (Select-String -Path "build.gradle" -Pattern "^\s*version\s*'([^']+)'" | ForEach-Object { $_.Matches[0].Groups[1].Value })
|
||||||
Write-Output $version
|
echo Version: $version
|
||||||
|
New-Item -Path "artifacts" -ItemType Directory
|
||||||
Copy-Item -Path "./src/build/ActionsTesting.exe" -Destination "./artifacts/ActionsTesting-$version.exe" -Verbose
|
Copy-Item -Path "./src/build/ActionsTesting.exe" -Destination "./artifacts/ActionsTesting-$version.exe" -Verbose
|
||||||
ISCC.exe /?
|
ISCC.exe /?
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
src/build/
|
src/build/
|
||||||
|
artifacts/
|
Loading…
Reference in New Issue
Block a user