From fcaa4228974870bd873130681c29ed140d5c1c39 Mon Sep 17 00:00:00 2001 From: "W. Felix Handte" Date: Mon, 3 Apr 2023 15:00:05 -0400 Subject: [PATCH] Rename/Restructure Windows Release Artifact https://github.com/facebook/zstd/releases/tag/v1.5.0 describes the structure we want to adhere to. This commit tries to accomplish that automatically, so we can avoid manual fixups on future releases. --- .github/workflows/windows-artifacts.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/windows-artifacts.yml b/.github/workflows/windows-artifacts.yml index ddae817be..7d73b4b05 100644 --- a/.github/workflows/windows-artifacts.yml +++ b/.github/workflows/windows-artifacts.yml @@ -2,7 +2,10 @@ name: windows-artifacts on: push: - branches: [ release, test_artifacts, win_artifacts ] + branches: [ test_artifacts, win_artifacts ] + release: + types: + - published permissions: read-all @@ -37,12 +40,12 @@ jobs: - name: Create artifacts run: | ./lib/dll/example/build_package.bat - cd bin/ - 7z a -tzip -mx9 zstd-win-release-win64.zip * + mv bin/ zstd-${{ github.ref_name }}-win64/ + 7z a -tzip -mx9 zstd-${{ github.ref_name }}-win64.zip zstd-${{ github.ref_name }}-win64/ cd .. - - name: Publish zstd-win-release-win64.zip + - name: Publish zstd-$VERSION-win64.zip uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # tag=v3 with: - path: ${{ github.workspace }}/bin/zstd-win-release-win64.zip - name: zstd-win-release-win64.zip + path: ${{ github.workspace }}/zstd-${{ github.ref_name }}-win64.zip + name: zstd-${{ github.ref_name }}-win64.zip -- 2.47.2