Skip to content

Commit

Permalink
Upload artifacts from master branch (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trojan295 authored Nov 18, 2021
1 parent b8d3419 commit c1189a6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

env:
CARGO_TERM_COLOR: always
PROJECT_NAME: ${{ github.event.repository.name }}

jobs:
build:
Expand Down Expand Up @@ -49,3 +50,15 @@ jobs:
use-cross: true
command: test
args: --verbose --target=${{ matrix.target }}

- name: Rename binary file
shell: bash
run: |
origin="$(find target/${{ matrix.target }}/debug -maxdepth 1 -perm -111 -iname "${{ env.PROJECT_NAME }}*")"
dest="${origin/${{ env.PROJECT_NAME}}/${{ env.PROJECT_NAME}}-${{ matrix.target}}}"
mv "$origin" "$dest"
- name: Upload binary
uses: actions/upload-artifact@v2
with:
name: eso-addons-${{ matrix.target }}
path: ./target/${{ matrix.target }}/debug/${{ env.PROJECT_NAME }}-${{ matrix.target }}*

0 comments on commit c1189a6

Please sign in to comment.