Skip to content

Commit

Permalink
Revert "try 2"
Browse files Browse the repository at this point in the history
This reverts commit 0a6ad8e.
  • Loading branch information
Smallsan committed Feb 26, 2024
1 parent 0a6ad8e commit 36242c7
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,17 @@ jobs:
draft: false
prerelease: true

## Debugging
- name: List target directory
run: ls -R target

- name: Download artifacts
uses: actions/download-artifact@v2
with:
path: artifacts

- name: Upload artifacts to release
run: |
for artifact in artifacts/*; do
echo "Uploading $artifact"
curl \
-H "Authorization: token ${{ secrets.PAT }}" \
-H "Content-Type: $(file -b --mime-type $artifact)" \
--data-binary @$artifact \
"${{ steps.create_release.outputs.upload_url }}?name=$(basename $artifact)"
done
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifacts/${{ matrix.name }}
asset_name: ${{ matrix.name }}
asset_content_type: application/octet-stream

0 comments on commit 36242c7

Please sign in to comment.