The best way of keeping Fortran code alive is to keep it useable, useful, and used. This is what I have been doing with Powell’s Derivative-Free Optimization Solvers. See PRIMA:
Uploading the code to some repository is necessary but not sufficient — it is only the first step.