From 77c0df5d5530b89444d54eb6696459b9135bf630 Mon Sep 17 00:00:00 2001 From: Aviv Cohn Date: Fri, 14 Feb 2025 13:18:27 -0500 Subject: [PATCH] ci: update version paths --- .github/workflows/docker.yml | 14 ++++++-------- .github/workflows/main.yml | 14 ++++++-------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e654fa68..0364b36b 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -65,13 +65,13 @@ jobs: run: Write-Output "$($Env:VERSION)" | Out-File -FilePath "$($Env:GITHUB_HOME)\output\version.txt" # Upload the build output as an artifact - name: Upload Build Output - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: Build path: ./${{ env.SOLUTION_FILE}}-${{ env.VERSION}}.zip # Upload the Version file as an artifact - name: Upload version.txt - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: Version path: ${{env.GITHUB_HOME}}\output\version.txt @@ -101,20 +101,18 @@ jobs: runs-on: windows-2019 steps: - name: Download Build Version Info - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v4 with: name: Version - name: Set Version Number shell: powershell run: | - Get-ChildItem "./Version" - $version = Get-Content -Path ./Version/version.txt + $version = Get-Content -Path ./version.txt Write-Host "Version: $version" echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - Remove-Item -Path ./Version/version.txt - Remove-Item -Path ./Version + Remove-Item -Path ./version.txt - name: Download Build output - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v4 with: name: Build path: ./ diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index abcc8419..017ec561 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,13 +59,13 @@ jobs: run: Write-Output "$($Env:VERSION)" | Out-File -FilePath "$($Env:GITHUB_HOME)\output\version.txt" # Upload the build output as an artifact - name: Upload Build Output - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: Build path: ./${{ env.SOLUTION_FILE}}-${{ env.VERSION}}.zip # Upload the Version file as an artifact - name: Upload version.txt - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: Version path: ${{env.GITHUB_HOME}}\output\version.txt @@ -85,20 +85,18 @@ jobs: runs-on: windows-2019 steps: - name: Download Build Version Info - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v4 with: name: Version - name: Set Version Number shell: powershell run: | - Get-ChildItem "./Version" - $version = Get-Content -Path ./Version/version.txt + $version = Get-Content -Path ./version.txt Write-Host "Version: $version" echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - Remove-Item -Path ./Version/version.txt - Remove-Item -Path ./Version + Remove-Item -Path ./version.txt - name: Download Build output - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v4 with: name: Build path: ./