Skip to content

Commit 35c0b86

Browse files
authored
Merge pull request #3 from mnoomnoo/pipeline
Pipeline
2 parents 4fe8462 + cfb1732 commit 35c0b86

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/cmake.yml renamed to .github/workflows/buildCursorLocker.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
name: CMake
1+
name: Build CursorLocker
22

3-
on:
4-
push:
5-
branches: [ "main" ]
6-
pull_request:
7-
branches: [ "main" ]
3+
on: [push, pull_request]
84

95
env:
106
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
@@ -29,7 +25,19 @@ jobs:
2925
# Build your program with the given configuration
3026
run: cmake --build ${{github.workspace}}\build --config ${{env.BUILD_TYPE}}
3127

32-
- uses: actions/download-artifact@v3
28+
- name: 'Create empty exesConfig file'
29+
run: fsutil file createnew ${{github.workspace}}\build\Release\Release\exesConfig.ecfg 0
30+
31+
- name: 'Copy Readme.md to release folder'
32+
run: copy README.md ${{github.workspace}}\build\Release\Release\README.md
33+
34+
- name: 'Create release artifact'
35+
uses: actions/upload-artifact@v3
3336
with:
34-
name: my-artifact
37+
name: CursorLocker-Release
38+
path: |
39+
build\Release\Release\CursorLocker.exe
40+
build\Release\Release\README.md
41+
build\Release\Release\exesConfig.ecfg
42+
retention-days: 1
3543

0 commit comments

Comments
 (0)