Much like with caching, you specify an array of paths, which can include wildcards like so:
package: artifacts: paths: - public/ - tests/*.html
In this case, everything in the public/ directory as well as any HTML files in the tests/ directory will be zipped, uploaded, and made available for download in the web user interface.