Skip to content

Commit

Permalink
Add check for release
Browse files Browse the repository at this point in the history
  • Loading branch information
leet4tari committed Jul 27, 2022
1 parent c285f9c commit 7ce5ecb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/matrix-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
create-release:
name: create-release
runs-on: ubuntu-latest
env:
# env:
# Set to force version number, e.g., when no tag exists.
LEET_VERSION: TEST-0.0.3
# LEET_VERSION: TEST-0.0.4
outputs:
upload_url: ${{ steps.release.outputs.upload_url }}
leet_version: ${{ env.LEET_VERSION }}
Expand Down Expand Up @@ -113,7 +113,10 @@ jobs:
with:
use-cross: ${{ matrix.builds.cross }}
command: build
args: --release --target ${{ matrix.builds.target }} ${{ matrix.builds.target_bins }}
# args: --release --target ${{ matrix.builds.target }} ${{ matrix.builds.target_bins }}
args: >
--release --target ${{ matrix.builds.target }}
${{ matrix.builds.target_bins }}
- name: Artifact upload
uses: actions/upload-artifact@v2
Expand All @@ -122,6 +125,7 @@ jobs:
path: target/${{ matrix.builds.target }}/release/cross-compile-sample

- name: Upload release archive
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 7ce5ecb

Please sign in to comment.