Swap file wont mount on boot

aren’t you missing the mkswap step? (Just a guess, I am not using btrfs, so not familiar.)

For working instructions for a swapfile on btrfs, read If I want to add a swapfile on Fedora Workstation with btrfs, where should I put it? - #3 by chrismurphy