Skip to content

Commit bba6413

Browse files
authored
chore: add github action file for paas-service(build only) (#271)
1 parent ae9fb79 commit bba6413

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/paas-service.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI Check for paas-service
2+
3+
on:
4+
push:
5+
branches: [master]
6+
paths:
7+
- "sdks/paas-service/**"
8+
pull_request:
9+
branches: [master]
10+
paths:
11+
- "sdks/paas-service/**"
12+
workflow_dispatch:
13+
release:
14+
types: [published]
15+
16+
jobs:
17+
# TODO: Add check and test steps
18+
19+
build:
20+
runs-on: macos-latest
21+
if: github.event.release && contains(github.event.release.tag_name, 'paas-service')
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Set up Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: 3.11
28+
- name: Set up Poetry
29+
uses: abatilo/actions-poetry@v2.3.0
30+
with:
31+
poetry-version: 2.1.1
32+
- name: Build paas-service
33+
run: |
34+
cd sdks/paas-service
35+
poetry install
36+
poetry build
37+
echo "${{ github.event.release.tag_name }} ${{ github.sha }}" > Release.txt
38+
cat Release.txt
39+
- name: Release
40+
uses: softprops/action-gh-release@v1
41+
with:
42+
files: |
43+
Release.txt
44+
sdks/paas-service/dist/*

0 commit comments

Comments
 (0)