This commit is contained in:
37
.github/workflows/buildService.yml
vendored
Normal file
37
.github/workflows/buildService.yml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
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@v4
|
||||
|
||||
- name: Build the service package
|
||||
id: build
|
||||
run: |
|
||||
git submodule update --init --recursive
|
||||
start-sdk init
|
||||
make
|
||||
PACKAGE_ID=$(yq -oy ".id" manifest.*)
|
||||
echo "package_id=$PACKAGE_ID" >> $GITHUB_ENV
|
||||
printf "\n SHA256SUM: $(sha256sum ${PACKAGE_ID}.s9pk) \n"
|
||||
shell: bash
|
||||
|
||||
- name: Upload .s9pk
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ env.package_id }}.s9pk
|
||||
path: ./${{ env.package_id }}.s9pk
|
||||
Reference in New Issue
Block a user