From 006e7c96d1e03ebf2252405ddfbf1c66c675c868 Mon Sep 17 00:00:00 2001 From: Simon Schmeisser Date: Sat, 26 Sep 2020 10:43:38 +0200 Subject: [PATCH] add github actions based on https://github.com/CODeRUS/screencast/blob/master/.github/workflows/build.yml --- .github/workflows/build.yml | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..6b541d8 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,46 @@ +name: telepathy-tank build + +on: + push: + branches: + - master + tags: + - '*' + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Prepare + run: mkdir output + + - name: Build armv7hl + id: build_armv7hl + uses: coderus/github-sfos-build@master + with: + release: 3.3.0.14 + + - name: Upload build result + uses: actions/upload-artifact@v2 + with: + name: telepathy-tank-rpms + path: RPMS + + - name: Create release + if: contains(github.ref, 'release') + run: | + set -x + assets=() + for asset in RPMS/*.rpm; do + assets+=("-a" "$asset") + done + tag_name="${GITHUB_REF##*/}" + hub release create "${assets[@]}" -m "$tag_name" "$tag_name" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}