-
Notifications
You must be signed in to change notification settings - Fork 19
51 lines (45 loc) · 1.6 KB
/
python-pre-release.yml
File metadata and controls
51 lines (45 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# This workflow builds a pre-release version of the Python API for Pathling and deploys it to PyPI.
name: "Python pre-release"
# This workflow is triggered manually, and requires the input of a segment identifier. This will be
# appended to the version, e.g. 6.1.3-dev0.
on:
workflow_dispatch:
inputs:
segmentIdentifier:
description: "Pre-release identifier"
required: true
default: ".dev0"
jobs:
deploy-python-pre-release:
name: Python pre-release
environment: pypi
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# This is required so that git-commit-id-plugin can find the latest tag.
fetch-depth: 0
submodules: recursive
- name: Set up build environment
uses: ./.github/actions/setup-build-tools
with:
java: "true"
python: "true"
- name: Run security scan
uses: ./.github/actions/trivy-scan
with:
skip-files: "examples/**/*,**/target/**/*,sql-on-fhir/**/*,licenses/**/*"
skip-db-update: "true"
skip-dirs: "server,ui,site,fhirpath-lab-api,benchmark,test-data,deployment"
- name: Run deploy goal (pre-release)
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
mvn --batch-mode deploy \
-pl lib/python -am \
-PpythonPreRelease \
-DskipTests \
-Dpathling.pyapi.version.qualifier=${{ github.event.inputs.segmentIdentifier }}
timeout-minutes: 30