Skip to content

Commit ddcd337

Browse files
authored
Fix upload (#61)
1 parent c8774b5 commit ddcd337

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ubuntu.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,18 @@ jobs:
3636
cd build
3737
cmake ..
3838
make -j8
39-
name="build/bin/${{env.archiveName}}"
39+
name="${{env.archiveName}}"
40+
path="build/bin/${{env.archiveName}}"
4041
hash=$(git rev-parse --short HEAD)
4142
echo "package_name=$name" >> $GITHUB_OUTPUT
43+
echo "package_path=$path" >> $GITHUB_OUTPUT
4244
echo "commit_hash=$hash" >> $GITHUB_OUTPUT
4345
- name: Upload Artifacts
4446
if: github.ref_name == 'master'
4547
uses: actions/upload-artifact@v3
4648
with:
4749
name: ${{ steps.build.outputs.package_name }}
48-
path: ${{ steps.build.outputs.package_name }}
50+
path: ${{ steps.build.outputs.package_path }}
4951
# - name: Upload Prerelease
5052
# if: github.ref_type == 'branch' && github.ref_name == 'master'
5153
# uses: svenstaro/upload-release-action@v2
@@ -64,7 +66,7 @@ jobs:
6466
uses: svenstaro/upload-release-action@v2
6567
with:
6668
repo_token: ${{ secrets.GITHUB_TOKEN }}
67-
file: ${{ steps.build.outputs.package_name }}
69+
file: ${{ steps.build.outputs.package_path }}
6870
asset_name: ${{ steps.build.outputs.package_name }}_${{ matrix.os }}_${{ github.ref_name }}
6971
tag: ${{ github.ref_name }}
7072
overwrite: true

0 commit comments

Comments
 (0)