From 2aac0ebd65e4bdf87436dfc98c4ad1ee1ed5089a Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Tue, 27 Jul 2021 10:22:45 +0100 Subject: [PATCH] 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. --- .github/workflows/release.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8e840aa..cd2f1c8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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' }} \ No newline at end of file