You can share geospatial data by making it accusable through an HTTP link. The exact method depends on which service you are using. Here I will just demonstrate the most common:
GitHub
GitHub is probably the easiest place to share your geospatial data, and If you are a student or are sharing with the general public, this solution is free of charge. Read how in the article “Sharing GeoSpatial Data on GitHub“