File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name: Build and Release
22
33on :
44 push :
5- tags :
6- - ' v* '
5+ branches :
6+ - main
77
88jobs :
99 build :
@@ -39,15 +39,16 @@ jobs:
3939 cmake .. -DCMAKE_BUILD_TYPE=Release
4040 cmake --build . --config Release
4141
42- - name : Upload release asset
43- run : |
44- if [ "$RUNNER_OS" == "Linux" ]; then
45- ASSET_NAME="EntropyVisualizer"
46- BINARY_PATH="build/EntropyVisualizer"
47- else
48- ASSET_NAME="EntropyVisualizer.exe"
49- BINARY_PATH="build/Release/EntropyVisualizer.exe"
50- fi
51- gh release upload ${{ github.ref_name }} "$BINARY_PATH#$ASSET_NAME"
52- env :
53- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42+ - name : Upload artifact (Linux)
43+ if : runner.os == 'Linux'
44+ uses : actions/upload-artifact@v6
45+ with :
46+ name : EntropyVisualizer
47+ path : build/EntropyVisualizer
48+
49+ - name : Upload artifact (Windows)
50+ if : runner.os == 'Windows'
51+ uses : actions/upload-artifact@v6
52+ with :
53+ name : EntropyVisualizer.exe
54+ path : build/Release/EntropyVisualizer.exe
You can’t perform that action at this time.
0 commit comments