@@ -29,55 +29,29 @@ jobs:
2929 uses : actions/checkout@v5
3030 if : ${{ steps.release.outputs.release_created }}
3131
32- - name : Create package archives
32+ - name : Upload cookbook as artifact
3333 if : ${{ steps.release.outputs.release_created }}
34- run : |
35- # Create temporary directory for packaging
36- mkdir -p /tmp/package
37-
38- # Copy all files except documentation directory
39- rsync -av --exclude='documentation/' --exclude='.git/' . /tmp/package/
40-
41- # Create tar.gz archive
42- cd /tmp
43- tar -czf haproxy-cookbook-${{ steps.release.outputs.tag_name }}.tar.gz package/
44-
45- # Create zip archive
46- zip -r haproxy-cookbook-${{ steps.release.outputs.tag_name }}.zip package/
47-
48- # Move archives to workspace
49- mv haproxy-cookbook-${{ steps.release.outputs.tag_name }}.tar.gz ${{ github.workspace }}/
50- mv haproxy-cookbook-${{ steps.release.outputs.tag_name }}.zip ${{ github.workspace }}/
34+ uses : actions/upload-artifact@v4
35+ with :
36+ name : haproxy-cookbook-${{ steps.release.outputs.tag_name }}
37+ path : |
38+ .
39+ !.git/
40+ !.github/
41+ !.kitchen/
42+ !.vscode/
43+ !documentation/
44+ !.gitignore
45+ !test/
46+ !spec/
47+ retention-days : 90
48+ compression-level : 6
5149
5250 - name : Generate artifact attestation
5351 if : ${{ steps.release.outputs.release_created }}
5452 uses : actions/attest-build-provenance@v1
5553 with :
56- subject-path : |
57- haproxy-cookbook-${{ steps.release.outputs.tag_name }}.tar.gz
58- haproxy-cookbook-${{ steps.release.outputs.tag_name }}.zip
59-
60- - name : Upload archives to release
61- if : ${{ steps.release.outputs.release_created }}
62- uses : actions/upload-release-asset@v1
63- env :
64- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
65- with :
66- upload_url : ${{ steps.release.outputs.upload_url }}
67- asset_path : ./haproxy-cookbook-${{ steps.release.outputs.tag_name }}.tar.gz
68- asset_name : haproxy-cookbook-${{ steps.release.outputs.tag_name }}.tar.gz
69- asset_content_type : application/gzip
70-
71- - name : Upload zip to release
72- if : ${{ steps.release.outputs.release_created }}
73- uses : actions/upload-release-asset@v1
74- env :
75- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
76- with :
77- upload_url : ${{ steps.release.outputs.upload_url }}
78- asset_path : ./haproxy-cookbook-${{ steps.release.outputs.tag_name }}.zip
79- asset_name : haproxy-cookbook-${{ steps.release.outputs.tag_name }}.zip
80- asset_content_type : application/zip
54+ subject-name : haproxy-cookbook-${{ steps.release.outputs.tag_name }}
8155
8256 publish-to-supermarket :
8357 needs : release-please
0 commit comments