This has been discussed many times on PF, and will likely come up again, so the video might come handy.
Previous threads:
https://www.physicsforums.com/threads/is-a-treadmill-incline-just-a-marketing-gimmick.937725/
https://www.physicsforums.com/threads/work-done-running-on-an-inclined-treadmill.927825/
https://www.physicsforums.com/threads/how-do-we-calculate-the-energy-we-used-to-do-something.1052162/