From 5ed7591d080d007d2b04e4fa9dcb190bec070325 Mon Sep 17 00:00:00 2001 From: Szymon Zosgornik Date: Wed, 20 Apr 2022 17:26:54 +0200 Subject: [PATCH] Add release workflow --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..bc9ab8a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: Release gos + +permissions: + contents: write + +on: + push: + tags: + - "v*.*.*" + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Initial Checkout + uses: actions/checkout@v2 + + - name: Install Quom to generate single header + run: pip install --user quom + + - name: Amalgamate gos into single header + run: ~/.local/bin/quom ./include/gos/gos.hpp gos.hpp -I ./include -g SZO_GOS_.+_HPP + + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: | + gos.hpp + LICENSE + README.md