]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Rename/Restructure Windows Release Artifact 3591/head
authorW. Felix Handte <w@felixhandte.com>
Mon, 3 Apr 2023 19:00:05 +0000 (15:00 -0400)
committerW. Felix Handte <w@felixhandte.com>
Mon, 3 Apr 2023 19:35:57 +0000 (15:35 -0400)
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

index ddae817be27e311ceb5e1109b7b9afd90515ef6d..7d73b4b05abca319c989db9dd8a7ef2d3160c275 100644 (file)
@@ -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