44 push :
55 tags :
66 - ' v*'
7+ workflow_dispatch : # Enable manual triggering from Actions tab
78
89jobs :
910 build :
10- name : Build for ${{ matrix.target }}
11+ name : Build for ${{ matrix.os }}
1112 runs-on : ${{ matrix.os }}
1213 strategy :
1314 matrix :
1415 include :
1516 - os : ubuntu-latest
16- target : x86_64-unknown-linux-gnu
17- artifact_name : fbqueue
1817 asset_name : fbqueue-linux-x64.tar.gz
1918 example_dir : linux
2019 - os : windows-latest
21- target : x86_64-pc-windows-msvc
22- artifact_name : fbqueue.exe
2320 asset_name : fbqueue-windows-x64.zip
2421 example_dir : windows
2522
@@ -36,10 +33,11 @@ jobs:
3633 if : runner.os == 'Linux'
3734 run : |
3835 mkdir dist
39- cp target/release/${{ matrix.artifact_name }} .
36+ cp target/release/fbqueue .
4037 tar -czvf dist/${{ matrix.asset_name }} \
41- ${{ matrix.artifact_name }} \
38+ fbqueue \
4239 README.md \
40+ MANUAL.md \
4341 examples/${{ matrix.example_dir }}
4442
4543 - name : Package (Windows)
@@ -48,10 +46,11 @@ jobs:
4846 run : |
4947 New-Item -ItemType Directory -Path dist
5048 Copy-Item "target\release\fbqueue.exe" .
51- Compress-Archive -Path "fbqueue.exe", "README.md", "examples\windows" -DestinationPath "dist\${{ matrix.asset_name }}"
49+ Compress-Archive -Path "fbqueue.exe", "README.md", "MANUAL.md", " examples\windows" -DestinationPath "dist\${{ matrix.asset_name }}"
5250
5351 - name : Upload Release Asset
5452 uses : softprops/action-gh-release@v1
53+ if : startsWith(github.ref, 'refs/tags/')
5554 with :
5655 files : dist/${{ matrix.asset_name }}
5756 env :
0 commit comments