Skip to content

Commit

Permalink
build: release action upload/download v4
Browse files Browse the repository at this point in the history
  • Loading branch information
Pscheidl committed Sep 28, 2024
1 parent 0f56bb3 commit 60a7476
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,24 @@ jobs:
- name: Create ${{ env.TARGET_LINUX }} and ${{ env.TARGET_LINUX }} ZIP packages
run: zip -j ${{ env.ARTIFACT_NAME }}_${{ env.TARGET_LINUX }}.zip target/${{ env.TARGET_LINUX }}/release/${{ env.ARTIFACT_NAME }} LICENSE && zip -j ${{ env.ARTIFACT_NAME }}_${{ env.TARGET_WINDOWS }}.zip target/${{ env.TARGET_WINDOWS }}/release/${{ env.ARTIFACT_NAME }}.exe LICENSE
- name: Upload ${{ env.TARGET_LINUX }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ env.TARGET_LINUX }}
path: ${{ env.ARTIFACT_NAME }}_${{ env.TARGET_LINUX }}.zip
- name: Upload ${{ env.TARGET_WINDOWS }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ env.TARGET_WINDOWS }}
path: ${{ env.ARTIFACT_NAME }}_${{ env.TARGET_WINDOWS }}.zip

build-macos:
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Create ${{ env.TARGET_MACOS }} ZIP package
run: rustup target add ${{ env.TARGET_MACOS }} && cargo build -p ${{ env.ARTIFACT_NAME }} --release --target ${{ env.TARGET_MACOS }} && zip -j ${{ env.ARTIFACT_NAME }}_${{ env.TARGET_MACOS }}.zip target/${{ env.TARGET_MACOS }}/release/${{ env.ARTIFACT_NAME }} LICENSE
- name: Upload ${{ env.TARGET_MACOS }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ env.TARGET_MACOS }}
path: ${{ env.ARTIFACT_NAME }}_${{ env.TARGET_MACOS }}.zip
Expand All @@ -59,15 +59,15 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Download ${{ env.TARGET_LINUX }} binary
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: ${{ env.TARGET_LINUX }}
- name: Download ${{ env.TARGET_WINDOWS }} binary
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: ${{ env.TARGET_WINDOWS }}
- name: Download ${{ env.TARGET_MACOS }} binary
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: ${{ env.TARGET_MACOS }}
- uses: "marvinpinto/action-automatic-releases@latest"
Expand Down

0 comments on commit 60a7476

Please sign in to comment.