Skip to content

Commit

Permalink
Remove artifact upload, update release process
Browse files Browse the repository at this point in the history
  • Loading branch information
satran004 committed Sep 19, 2024
1 parent 243c520 commit 536e946
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,26 +103,12 @@ jobs:
TAG=$GITHUB_SHA
fi
mv ./target/$TARGET/release/$LIB_NAME ./artifacts/$TARGET_NAME
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.TARGET_NAME }}
path: |
./artifacts
# deploys to github releases on tag
deploy:
if: startsWith(github.ref, 'refs/tags/')
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: List
run: find ./artifacts
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./artifacts/*.*
files: |
./artifacts/$TARGET_NAME
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 536e946

Please sign in to comment.