@@ -40,14 +40,22 @@ jobs:
40
40
make release
41
41
- name : Debug Directory Contents
42
42
run : |
43
- ls -la .bin/ || echo "Directory .bin/ is empty or does not exist"
43
+ echo "Current working directory:"
44
+ pwd
45
+ echo "Listing contents of .bin/ recursively:"
46
+ find .bin/ -type f -ls || echo "No files found in .bin/"
47
+ echo "Directory structure:"
48
+ ls -laR .bin/ || echo "Directory .bin/ is empty or does not exist"
49
+ echo "Testing glob expansion:"
50
+ ls .bin/* || echo "Glob .bin/* found no files"
44
51
- name : Upload Build Artifacts
45
52
uses : actions/upload-artifact@v4
46
53
with :
47
54
name : pumba-binaries
48
- path : .bin/**
55
+ path : .bin/*
49
56
retention-days : 7
50
57
compression-level : 6
58
+ include-hidden-files : true
51
59
52
60
create-release :
53
61
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
@@ -61,34 +69,26 @@ jobs:
61
69
uses : actions/checkout@v4
62
70
with :
63
71
fetch-depth : 0
64
- - name : Get Tag Name
65
- id : get_tag
66
- run : echo "git_tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
67
72
- name : Download Artifacts
68
73
uses : actions/download-artifact@v4
69
74
with :
70
75
name : pumba-binaries
71
76
path : ${{ github.workspace }}/.bin/
72
- job-id : build
73
77
- name : Create GitHub Release
74
- id : create_release
75
- uses : actions/create-release@v1
76
- env :
77
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
78
+ uses : ncipollo/release-action@v1
78
79
with :
79
- tag_name : ${{ steps.get_tag.outputs.git_tag }}
80
- release_name : ${{ steps.get_tag.outputs.git_tag }}
80
+ token : ${{ secrets.GITHUB_TOKEN }}
81
+ tag : ${{ github.ref_name }}
82
+ name : Release ${{ github.ref_name }}
83
+ body : " Automated release for ${{ github.ref_name }}"
84
+ generateReleaseNotes : true
81
85
prerelease : true
82
- generate_release_notes : true
83
- - name : Upload Release Assets
84
- uses : actions/upload-release-asset@v1
85
- env :
86
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
87
- with :
88
- upload_url : ${{ steps.create_release.outputs.upload_url }}
89
- asset_path : ${{ github.workspace }}/.bin/**
90
- asset_name : pumba-binaries-${{ steps.get_tag.outputs.git_tag }}.tar.gz
91
- asset_content_type : application/gzip
86
+ artifacts : ${{ github.workspace }}/.bin/*
87
+ allowUpdates : false
88
+ commit : ${{ github.sha }}
89
+ draft : false
90
+ removeArtifacts : false
91
+ replacesArtifacts : true
92
92
93
93
push-docker :
94
94
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
0 commit comments