From 08333eb9eb688ab8523f227a0da21d2a6454fd7e Mon Sep 17 00:00:00 2001 From: Darius Arnold Date: Thu, 13 Apr 2023 21:18:36 +0200 Subject: [PATCH] Add github release action Currently this only publishes the source and no prebuilt binaries. For that more dependency management would be required, either all runtime libraries would have to be installed on the users system or they would have to be bundled or statically linked. Also for compatibility with older systems the glibc version of the build node would have to be taken into account. --- .github/workflows/actions/release.yml | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/actions/release.yml diff --git a/.github/workflows/actions/release.yml b/.github/workflows/actions/release.yml new file mode 100644 index 0000000..2975083 --- /dev/null +++ b/.github/workflows/actions/release.yml @@ -0,0 +1,30 @@ +name: release +run-name: Create github release +on: + push: + tags: + - "v*.*.*" +jobs: + + release: + runs-on: ubuntu-22.04 + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + + - uses: ./.github/workflows/actions/setup + with: + conanprofile: gcc-12 + + - name: Build + shell: bash + run: | + conan create . --profile:host=gcc-12 --profile:build=gcc-12 --build=missing + + - name: Release + uses: softprops/action-gh-release@v1 \ No newline at end of file