Replace order of the releases so the v1 is always second,

allowing users to pull the latest version of the binary from the "latest" link.
This commit is contained in:
2021-07-27 10:22:45 +01:00
parent ec30e46868
commit 2aac0ebd65
+7 -7
View File
@@ -189,21 +189,21 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: dist/semver-gen-*
tag_name: ${{ needs.prepare.outputs.RELEASE_VERSION }}
name: ${{ needs.prepare.outputs.RELEASE_VERSION }}
tag_name: v1
name: v1
body_path: .release_notes
draft: false
prerelease: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main' }}
- name: Create Release v1
id: create_release_v1
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: dist/semver-gen-*
tag_name: v1
name: v1
tag_name: ${{ needs.prepare.outputs.RELEASE_VERSION }}
name: ${{ needs.prepare.outputs.RELEASE_VERSION }}
body_path: .release_notes
draft: false
prerelease: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main' }}
prerelease: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main' }}