From b524dc950450fa26b6afc107a44a69eead30c989 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 | 18 ++++++++++-------- constants.ts | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml index bb09172..2e1e547 100644 --- a/.github/workflows/build_and_release.yml +++ b/.github/workflows/build_and_release.yml @@ -58,8 +58,8 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v4 with: - name: ${{ matrix.os.name }}.drenv - path: builds/* + name: ${{ matrix.os.name }} + path: ${{ startsWith(matrix.os.runner, 'windows') && 'builds/drenv.exe' || 'builds/drenv' }} release: runs-on: ubuntu-latest @@ -73,14 +73,16 @@ jobs: uses: actions/download-artifact@v4 with: path: builds + - name: Rename files for release + run: | + mv builds/x86_64-pc-windows-msvc/drenv.exe builds/x86_64-pc-windows-msvc.drenv.exe + mv builds/x86_64-apple-darwin/drenv builds/x86_64-apple-darwin.drenv + mv builds/aarch64-apple-darwin/drenv builds/aarch64-apple-darwin.drenv + mv builds/x86_64-unknown-linux-gnu/drenv builds/x86_64-unknown-linux-gnu.drenv + mv builds/aarch64-unknown-linux-gnu/drenv builds/aarch64-unknown-linux-gnu.drenv - 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`;