name: Package on: push: tags: - "v*.*.*" jobs: # Debian package ubuntu: name: Package (Debian) runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Configure run: cmake -B build -DCPACK_GENERATOR=DEB -DCMAKE_BUILD_TYPE=Release . - name: Package id: package run: | cmake --build build --target package echo 'ASSETS<> $GITHUB_OUTPUT /bin/ls -1 build/*.deb >> $GITHUB_OUTPUT echo 'EOF' >> $GITHUB_OUTPUT - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: files: ${{ steps.package.outputs.ASSETS }} windows: name: Package (Windows) runs-on: windows-latest steps: - uses: actions/checkout@v1 - name: Configure run: cmake --no-warn-unused-cli -G Ninja -B build -DCPACK_GENERATOR=NSIS -DCMAKE_BUILD_TYPE=Release . - name: Package id: package shell: bash run: | cmake --build build --target package echo ASSET=$(ls -1 build/*.exe) >> $GITHUB_OUTPUT - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: files: ${{ steps.package.outputs.ASSET }}