Skip to content

Commit

Permalink
Update app_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
robdobsn authored Feb 12, 2024
1 parent 3760ce0 commit 13e487f
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/app_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,32 @@ jobs:
- name: Build
run: cargo build --release --target ${{ matrix.target }}

- name: Prepare Artifacts
run: |
mkdir -p ./artifacts/${{ matrix.target }}
# Assuming executable name is 'raft' or 'raft.exe'
find target/${{ matrix.target }}/release/ -type f \( -name 'raft' -o -name 'raft.exe' \) -exec cp {} ./artifacts/${{ matrix.target }}/ \;
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: raft_${{ matrix.target }}
path: target/${{ matrix.target }}/release/raft*
path: ./artifacts/${{ matrix.target }}/

upload-release-assets:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts

path: artifacts2
- name: Display structure of downloaded files
run: ls -R

- name: Upload artifacts to Release
uses: softprops/action-gh-release@v1
with:
files: artifacts/**/*
files: artifacts2/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 13e487f

Please sign in to comment.