From 48a80411b4c44f5b6365929f853a6035673bec3e Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 12 Jan 2023 13:47:41 +0000 Subject: [PATCH] windows-build/tar: Make archive at .. and then mv into 'root' * Because the archive is a new file in the root it causes: `tar: EDMarketConnector: file changed as we read it` Verified on Linux/Debian, and also verified that this fix works. --- .github/workflows/windows-build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index 0cf0695a..3f306884 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -35,7 +35,7 @@ jobs: # For 'tar' we can only specify filename/glob exclusions, not any # directory location tar -c -v -z \ - -f EDMarketConnector-release-${{ needs.variables.outputs.sem_ver }}.tar.gz \ + -f ../EDMarketConnector-release-${{ needs.variables.outputs.sem_ver }}.tar.gz \ -C .. \ --exclude=EDMarketConnector-release-*.* \ --exclude=.editorconfig \ @@ -52,6 +52,7 @@ jobs: --exclude=tests \ --exclude=wix \ EDMarketConnector + mv ../EDMarketConnector-release-${{ needs.variables.outputs.sem_ver }}.tar.gz . - name: Upload build files uses: actions/upload-artifact@v3 @@ -124,7 +125,7 @@ jobs: release: name: Release new version runs-on: ubuntu-latest - needs: windows_build + needs: [ windows_build, linux_build ] if: "${{ github.event_name != 'workflow_dispatch' }}" steps: