Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/workflows/assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,15 @@ jobs:
# made with GITHUB_TOKEN start no workflows), so release-please.yml dispatches
# this workflow with the tag. The `release` event still covers a release made
# by hand.
#
# Uploads with `gh release upload` rather than softprops/action-gh-release, which
# also updates the release itself and was refused ("Resource not accessible by
# integration") when run for an existing release. Uploading only adds the files.
- name: Upload artifacts to release
if: github.event_name == 'release' || inputs.tag != ''
uses: softprops/action-gh-release@v3
with:
tag_name: ${{ inputs.tag || github.event.release.tag_name }}
files: |
dist/mvtb_examples.zip
dist/mvtb_notebooks.zip
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ inputs.tag || github.event.release.tag_name }}
run: |
gh release upload "$TAG" dist/mvtb_examples.zip dist/mvtb_notebooks.zip \
--clobber --repo "$GITHUB_REPOSITORY"
Loading