Move symlinking to script. Require valid semver range

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2022-01-24 14:21:53 +01:00
parent 19a9c341a7
commit 3b948a982e
2 changed files with 21 additions and 13 deletions
+1 -8
View File
@@ -23,15 +23,8 @@ jobs:
git config --global user.name 'Github versions workflow'
- name: Create release
run: |
node scripts/assemble-manifest.js ${{ github.event.inputs.version }} versions/v1/releases
node scripts/assemble-manifest.js ${{ github.event.inputs.version }}
cd versions
if [[ "${{ github.event.inputs.version }}" == *"next"* ]]; then
echo Updating next tag
rm -f v1/tags/next && ln -s ../releases/${{ github.event.inputs.version }} v1/tags/next
else
echo Updating main tag
rm -f v1/tags/main && ln -s ../releases/${{ github.event.inputs.version }} v1/tags/main
fi
git add .
git commit -am "${{ github.event.inputs.version }}"
git push