From b13ec435b3119cfe229740604ac43501caf204d1 Mon Sep 17 00:00:00 2001 From: Daniel Dye Date: Fri, 18 Oct 2024 16:42:32 +0100 Subject: [PATCH] Fix release workflow --- .github/workflows/build_and_release.yml | 11 ++++------- constants.ts | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml index bb09172..4225a3e 100644 --- a/.github/workflows/build_and_release.yml +++ b/.github/workflows/build_and_release.yml @@ -59,7 +59,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: ${{ matrix.os.name }}.drenv - path: builds/* + path: ${{ startsWith(matrix.os.runner, 'windows') && 'builds/drenv.exe' || 'builds/drenv' }} release: runs-on: ubuntu-latest @@ -73,14 +73,11 @@ jobs: uses: actions/download-artifact@v4 with: path: builds + - name: List files + run: ls -lahR builds - name: Create Release uses: softprops/action-gh-release@v2 with: - files: | - builds/x86_64-pc-windows-msvc.drenv - builds/x86_64-apple-darwin.drenv - builds/aarch64-apple-darwin.drenv - builds/x86_64-unknown-linux-gnu.drenv - builds/aarch64-unknown-linux-gnu.drenv + files: builds/* fail_on_unmatched_files: true generate_release_notes: true diff --git a/constants.ts b/constants.ts index 347bfca..7e84b47 100644 --- a/constants.ts +++ b/constants.ts @@ -1,4 +1,4 @@ -export const version = "0.3.3"; +export const version = "0.3.4"; export const homePath = `${Deno.env.get("HOME")}/.drenv`; export const versionsPath = `${homePath}/versions`; export const binPath = `${homePath}/bin`;