Skip to content

Commit

Permalink
release artifact discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
JairusSW committed Oct 5, 2024
1 parent 62779f6 commit 4486344
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ jobs:
- name: Install dependencies
run: npm install

- name: Run build
- name: Build source files
run: npm run build

- name: Prepare for pack
- name: Prepare for build
run: npm run prepack

- name: Build tarballs
run: npm run pack

- name: Clean up
- name: Clean up build
run: npm run postpack

- name: Extract version
Expand All @@ -61,10 +61,9 @@ jobs:
draft: false
prerelease: true

- name: Upload release artifacts
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/*.gz
asset_name: hyp-v${{ steps.get_version.outputs.VERSION }}-${{ steps.get_git_info.outputs.GIT_HASH }}-${{ steps.get_git_info.outputs.GIT_BRANCH }}-win32-x64.tar.gz # Version, commit hash, and branch in the filename
asset_content_type: application/gzip
- name: Find and upload release artifacts
run: |
for file in $(find ./dist -name "*.tar.gz"); do
echo "Uploading $file..."
gh release upload ${{ steps.create_release.outputs.tag_name }} $file --clobber
done

0 comments on commit 4486344

Please sign in to comment.