Skip to content

Commit 41ffac4

Browse files
authored
When a tag is created, upload a release artifact. (#29)
1 parent c6f92bf commit 41ffac4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/c-cpp.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,14 @@ jobs:
7575
# Using wildcards so that only the driver directory gets included (if you specify it, then it won't be included)
7676
path: |
7777
${{env.CMAKE_BUILD_DIR}}/Release/driver/*
78+
79+
- name: Zip
80+
if: startsWith(github.ref, 'refs/tags/')
81+
working-directory: ${{env.CMAKE_BUILD_DIR}}/Release/driver/
82+
run: cmake -E tar "cf" "${{env.CMAKE_BUILD_DIR}}/Release/slimevr-openvr-driver-${{ matrix.triplet }}.zip" --format=zip -- ${{env.CMAKE_BUILD_DIR}}/Release/driver/slimevr
83+
84+
- name: Release
85+
uses: softprops/action-gh-release@v1
86+
if: startsWith(github.ref, 'refs/tags/')
87+
with:
88+
files: "${{env.CMAKE_BUILD_DIR}}/Release/slimevr-openvr-driver-${{ matrix.triplet }}.zip"

0 commit comments

Comments
 (0)