There are to issues with the file provided
1. The Ubuntu version used isn't supported anyone
This is an easy fix all you have to do is change the version number
2. actions/upload-artifact@v2 can't be recognized and askes for download details
For this one I am completely in the the dark I don't know what this is and what it's used for.
If it is working properly and I just forgot to install something then you should give more details about it either as a comment in the file itself or in the readme.md of the root directory