Skip to content

Commit

Permalink
Fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitemaeric committed Oct 18, 2024
1 parent ba08585 commit b524dc9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion constants.ts
Original file line number Diff line number Diff line change
@@ -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`;
Expand Down

0 comments on commit b524dc9

Please sign in to comment.