[misc] Backported the workflow to 3.1.1: changed version number for the 3.1.1 branch to 1.1-3.1.1, to not colide with the actual 1.2-SNAPSHOT version being built.