forked from illuscio-dev/azure-pipelines-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish_library.yml
40 lines (33 loc) · 1.22 KB
/
publish_library.yml
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
parameters:
# What the primary language of this build is. Choices are GO | PYTHON | DOCKER.
- name: language
type: string
# Artifact feed to pull custom packages from (pass blank if not using).
- name: pypiAzureArtifactFeed
type: string
# Publish to the public pypi.org
- name: publishToPypiOrg
type: boolean
# Whether to publish rust package to crates.io.
- name: publishToCratesIO
type: boolean
# Whether to publish rust package to hex.pn.
- name: publishToHexPM
type: boolean
steps:
# Publish libraries
# Setup build tools / dependencies.
- ${{ if eq( parameters.language, 'PYTHON') }}:
- template: publish_library_python_setup.yml
- template: publish_library_python.yml
parameters:
pypiAzureArtifactFeed: ${{ parameters.pypiAzureArtifactFeed }}
publishToPypiOrg: ${{ parameters.publishToPypiOrg }}
- ${{ if eq( parameters.language, 'RUST') }}:
- template: publish_library_rust.yml
parameters:
publishToCratesIO: ${{ parameters.publishToCratesIO }}
- ${{ if eq( parameters.language, 'ELIXIR') }}:
- template: publish_library_elixir.yml
parameters:
publishToHexPM: ${{ parameters.publishToHexPM }}