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 3b5976e
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 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 @@ -95,7 +95,7 @@ jobs:
path: dist/*
if-no-files-found: error
publish:
name: Publish to PyPi and release
name: Publish to PyPi
if: github.repository == 'Eeems-Org/remarkable-update-fuse' && github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
needs: [build-sdist]
runs-on: ubuntu-latest
Expand All @@ -116,29 +116,28 @@ jobs:
with:
packages-dir: ${{ steps.download.outputs.download-path }}
skip-existing: true
- name: Upload to release
run:
find "$FOLDER" -type -f | xargs -rI{} hub release edit --attach {} "$TAG"
env:
FOLDER: ${{ steps.download.outputs.download-path }}
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"
find "$FOLDER" -type f | xargs -rI{} hub release edit --attach {} "$TAG"
env:
FOLDER: ${{ steps.download.outputs.download-path }}
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
Expand Down

0 comments on commit 3b5976e

Please sign in to comment.