Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflows: fix upload to NeoFS #53

Merged
merged 1 commit into from
May 9, 2024
Merged

workflows: fix upload to NeoFS #53

merged 1 commit into from
May 9, 2024

Conversation

roman-khimov
Copy link
Member

gh-push-to-neofs doesn't strip PATH_TO_FILES_DIR from FilePath which leads to uploads using attributes like

--attributes FilePath=fs.neo.org/images/icons/icon5.svg,ContentType=image/svg+xml

while in fact we need

--attributes FilePath=images/icons/icon5.svg,ContentType=image/svg+xml

for the site to work properly.

@roman-khimov roman-khimov force-pushed the fix-upload branch 4 times, most recently from dcefec5 to ae02c03 Compare May 9, 2024 20:21
roman-khimov added a commit to nspcc-dev/gh-push-to-neofs that referenced this pull request May 9, 2024
Website built into "site-dir" is the root of container, so FilePath
there should be "index.html" and not "site-dir/index.html".

Related to nspcc-dev/fs-neo-org#53

Signed-off-by: Roman Khimov <roman@nspcc.ru>
gh-push-to-neofs doesn't strip PATH_TO_FILES_DIR from FilePath which leads to
uploads using attributes like

  --attributes FilePath=fs.neo.org/images/icons/icon5.svg,ContentType=image/svg+xml

while in fact we need

  --attributes FilePath=images/icons/icon5.svg,ContentType=image/svg+xml

for the site to work properly.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
roman-khimov added a commit to nspcc-dev/gh-push-to-neofs that referenced this pull request May 9, 2024
Website built into "site-dir" is the root of container, so FilePath
there should be "index.html" and not "site-dir/index.html".

Related to nspcc-dev/fs-neo-org#53

Signed-off-by: Roman Khimov <roman@nspcc.ru>
@roman-khimov
Copy link
Member Author

Depends on nspcc-dev/gh-push-to-neofs#21

@roman-khimov roman-khimov merged commit 66351d7 into master May 9, 2024
2 checks passed
@roman-khimov roman-khimov deleted the fix-upload branch May 9, 2024 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant