Skip to content

Commit

Permalink
ci: add build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
90Mark committed Jun 13, 2023
1 parent 04e244b commit 3c945bc
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build API Example / Addon

on:
workflow_call:
inputs:
type:
description: 'Build type'
required: true
default: 'sdk'
type: string
workflow_dispatch:
inputs:
type:
description: 'Build type'
required: true
default: 'demo'
type: choice
options:
- demo
- sdk
release:
types: [ published ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Build
run: |
type=${{inputs.type}}
type=${type:-"sdk"}
curl -X POST -sS -D- -o/dev/null ${{secrets.JENKINS_BUILD_URL}} \
-H 'Content-Type: application/json' \
-d "{\"branch\": \"${{github.ref_name}}\", \"type\": \"${type}\"}"

0 comments on commit 3c945bc

Please sign in to comment.