Skip to content

Commit 7ce5ecb

Browse files
committedJul 27, 2022
Add check for release
1 parent c285f9c commit 7ce5ecb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
 

‎.github/workflows/matrix-test.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
create-release:
1313
name: create-release
1414
runs-on: ubuntu-latest
15-
env:
15+
# env:
1616
# Set to force version number, e.g., when no tag exists.
17-
LEET_VERSION: TEST-0.0.3
17+
# LEET_VERSION: TEST-0.0.4
1818
outputs:
1919
upload_url: ${{ steps.release.outputs.upload_url }}
2020
leet_version: ${{ env.LEET_VERSION }}
@@ -113,7 +113,10 @@ jobs:
113113
with:
114114
use-cross: ${{ matrix.builds.cross }}
115115
command: build
116-
args: --release --target ${{ matrix.builds.target }} ${{ matrix.builds.target_bins }}
116+
# args: --release --target ${{ matrix.builds.target }} ${{ matrix.builds.target_bins }}
117+
args: >
118+
--release --target ${{ matrix.builds.target }}
119+
${{ matrix.builds.target_bins }}
117120
118121
- name: Artifact upload
119122
uses: actions/upload-artifact@v2
@@ -122,6 +125,7 @@ jobs:
122125
path: target/${{ matrix.builds.target }}/release/cross-compile-sample
123126

124127
- name: Upload release archive
128+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
125129
uses: softprops/action-gh-release@v1
126130
env:
127131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)
Please sign in to comment.