Skip to content

Commit

Permalink
fix bug w/ finding generated tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
ksedgwic committed Oct 2, 2024
1 parent 8701af6 commit 1b69894
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,33 @@ jobs:
- name: Create .zip source tarball
run: make dist-zip

- name: List files to verify tarball creation
- name: List generated files for debugging
run: ls -lah

- name: Find .tar.gz file and set environment variable
id: find_tarball
run: |
TARBALL_PATH=$(find . -name 'clboss-*.tar.gz')
echo "TARBALL_PATH=$TARBALL_PATH" >> $GITHUB_ENV
- name: Find .zip file and set environment variable
id: find_zip
run: |
ZIP_PATH=$(find . -name 'clboss-*.zip')
echo "ZIP_PATH=$ZIP_PATH" >> $GITHUB_ENV
- name: Upload .tar.gz release asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./clboss-*.tar.gz
asset_path: ${{ env.TARBALL_PATH }}
asset_name: clboss-${{ github.event.release.tag_name }}.tar.gz
asset_content_type: application/gzip

- name: Upload .zip release asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./clboss-*.zip
asset_path: ${{ env.ZIP_PATH }}
asset_name: clboss-${{ github.event.release.tag_name }}.zip
asset_content_type: application/zip

0 comments on commit 1b69894

Please sign in to comment.