Skip to content

Commit

Permalink
Update Release Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JopStro committed May 5, 2024
1 parent cc5d611 commit 81d8172
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
LUA_LIB: "./.lua/lib"
- uses: actions/upload-artifact@v4
with:
name: json5.dll
name: windows-build
path: target/release/json5.dll
build-macos:
runs-on: macos-latest
Expand All @@ -34,7 +34,7 @@ jobs:
run: cargo rustc --verbose --release -- -C link-arg=-undefined -C link-arg=dynamic_lookup
- uses: actions/upload-artifact@v4
with:
name: json5.dylib
name: macos-build
path: target/release/libjson5.dylib
build-linux:
runs-on: ubuntu-latest
Expand All @@ -45,7 +45,7 @@ jobs:
run: cargo build --verbose --release
- uses: actions/upload-artifact@v4
with:
name: json5.so
name: linux-build
path: target/release/libjson5.so

create-release:
Expand All @@ -54,18 +54,12 @@ jobs:
permissions: write-all

steps:
- name: Download Windows Artifact
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: json5.dll
- name: Download Macos Artifact
uses: actions/download-artifact@v4
with:
name: json5.dylib
- name: Download Linux Artifact
uses: actions/download-artifact@v4
with:
name: json5.so
pattern: "*-build"
- run: mv libjson5.dylib json5.dylib
- run: mv libjson5.so json5.so

- name: Create a Release
uses: ncipollo/release-action@v1
Expand Down

0 comments on commit 81d8172

Please sign in to comment.