I've created a GH workflow to deploy my web app on my VPS running Ubuntu 24.04 and node 20 with the below:
/var/www/domain/releases/${{ github.sha }}/all my app files(keeps the 5 latest releases and flushes the oldest)/var/www/domain/live
I want the /live directory to be (re)symlinked to the latest release automatically so I'm executing the following at the end of my workflow before starting the app:
ln -s -n -f /var/www/domain/releases/${{ github.sha }} /var/www/domain/liveI always end up with the GH SHA directory within /live/${{ github.sha }} instead of having all files within /releases/${{ github.sha }}/ directly at the root of the /live directory.
How shall I do to have this working properly that /releases/${{ github.sha }}points effectively to /live and not /live/${{ github.sha }}?
Thank you for the help!