Skip to content

Commit d34ff3d

Browse files
committed
fix release
1 parent 5aff93f commit d34ff3d

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

.github/workflows/release.yaml

+22-22
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,22 @@ jobs:
4040
make release
4141
- name: Debug Directory Contents
4242
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"
4451
- name: Upload Build Artifacts
4552
uses: actions/upload-artifact@v4
4653
with:
4754
name: pumba-binaries
48-
path: .bin/**
55+
path: .bin/*
4956
retention-days: 7
5057
compression-level: 6
58+
include-hidden-files: true
5159

5260
create-release:
5361
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
@@ -61,34 +69,26 @@ jobs:
6169
uses: actions/checkout@v4
6270
with:
6371
fetch-depth: 0
64-
- name: Get Tag Name
65-
id: get_tag
66-
run: echo "git_tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
6772
- name: Download Artifacts
6873
uses: actions/download-artifact@v4
6974
with:
7075
name: pumba-binaries
7176
path: ${{ github.workspace }}/.bin/
72-
job-id: build
7377
- 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
7879
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
8185
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
9292

9393
push-docker:
9494
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)