Skip to content

Commit

Permalink
Fix release upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Dec 28, 2023
1 parent 7c79d84 commit 36c9a79
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
--output-dir=dist \
--output-filename=rmufuse \
remarkable_update_fuse/__main__.py
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: rmufuse
path: dist
Expand Down Expand Up @@ -124,18 +124,24 @@ jobs:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
TAG: ${{ github.event.release.tag_name }}
release:
name: Add binaries to release
name: Add ${{ matrix.artifact }} release
if: github.repository == 'Eeems-Org/remarkable-update-fuse' && github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
needs: [build-executable]
needs: [build-executable build-wheel]
runs-on: ubuntu-latest
strategy:
matrix:
artifact:
- 'rmufuse'
- 'pip-sdist'
- 'pip-wheel-3.11'
permissions:
contents: write
steps:
- name: Download executable
id: download
uses: actions/download-artifact@v4
with:
name: rmufuse
name: ${{ matrix.artifact }}
- name: Upload to release
run:
find "$FOLDER" -type -f | xargs -rI{} hub release edit --attach {} "$TAG"
Expand Down

0 comments on commit 36c9a79

Please sign in to comment.