From 5a765445621107f6b45e3e81c1496456b25da5cb Mon Sep 17 00:00:00 2001 From: Mariusz Kogen Date: Wed, 29 Nov 2023 20:19:33 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=9F=20Update=20to=20Universal=20buildS?= =?UTF-8?q?ervice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/buildService.yml | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/buildService.yml diff --git a/.github/workflows/buildService.yml b/.github/workflows/buildService.yml new file mode 100644 index 0000000..d96d1d9 --- /dev/null +++ b/.github/workflows/buildService.yml @@ -0,0 +1,35 @@ +name: Build Service + +on: + workflow_dispatch: + pull_request: + paths-ignore: ['*.md'] + branches: ['main', 'master'] + push: + paths-ignore: ['*.md'] + branches: ['main', 'master'] + +jobs: + BuildPackage: + runs-on: ubuntu-latest + steps: + - name: Prepare StartOS SDK + uses: Start9Labs/sdk@v1 + + - name: Checkout services repository + uses: actions/checkout@v3 + + - name: Build the service package + run: | + git submodule update --init --recursive + start-sdk init + make + PACKAGE_ID=$(yq e ".id" manifest.yaml) + mv ${PACKAGE_ID}*s9pk ~/ + shell: bash + + - name: Upload .s9pk + uses: actions/upload-artifact@v3 + with: + name: ${{ env.PACKAGE_ID }}.s9pk + path: ~/*.s9pk