From: W. Felix Handte Date: Mon, 3 Apr 2023 19:00:05 +0000 (-0400) Subject: Rename/Restructure Windows Release Artifact X-Git-Tag: v1.5.5~1^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3591%2Fhead;p=thirdparty%2Fzstd.git 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. --- 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