Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Phill030 authored Oct 16, 2023
1 parent 915b98e commit e5a875f
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
target:
- x86_64-unknown-linux-gnu
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
Expand All @@ -21,7 +21,7 @@ jobs:
use-cross: true
command: build
args: --release --verbose --target=${{ matrix.target }} --package kiwad_unpacker --bins --target-dir ./build
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: linux-executable
path: ./build/${{ matrix.target }}/release/kiwad_unpacker
Expand All @@ -34,7 +34,7 @@ jobs:
target:
- x86_64-pc-windows-msvc
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
Expand All @@ -45,7 +45,7 @@ jobs:
use-cross: true
command: build
args: --release --verbose --target=${{ matrix.target }} --package kiwad_unpacker --bins --target-dir ./build
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: windows-executable
path: .\build\${{ matrix.target }}\release\kiwad_unpacker.exe
Expand All @@ -56,21 +56,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- name: Display structure of downloaded files
run: ls -al
- name: Display structure of downloaded files 2
run: ls -al linux-executable/
- name: Create release
uses: softprops/action-gh-release@v1
uses: ncipollo/release-action@v1
with:
name: ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
generate_release_notes: true
artifacts: "./linux-executable/kiwad_unpacker,./windows-executable/kiwad_unpacker.exe"
prerelease: false
files: |
linux-executable/kiwad_unpacker
windows-executable/kiwad_unpacker.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
name: ${{ github.ref_name }}
tag: ${{ github.ref_name }}

0 comments on commit e5a875f

Please sign in to comment.