forked from illuscio-dev/azure-pipelines-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublish.yml
58 lines (45 loc) · 1.8 KB
/
publish.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
parameters:
# What the primary language of this build is. Choices are GO | PYTHON | DOCKER.
- name: language
type: string
# What the repo type for this build. Choices are LIBRARY | SERVICE. Service will
# result in docker container build and push.
- name: buildType
type: string
# Artifact feed to pull custom packages from (pass blank if not using).
- name: pypiAzureArtifactFeed
type: string
# The branch to push passing 'dev' builds into.
- name: releaseBranchName
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:
# Freeze the list of packages this build was made with for reference.
- script: pip freeze > pip-freeze.txt
displayName: Freeze Python package list
# Merge build to the release branch and tag as release version (this is how go
# modules are published). We are going to do it for every type of release, so we
# always have a history of tags for each release.
- template: git_update_release_branch.yml
parameters:
releaseBranchName: ${{ parameters.releaseBranchName }}
- ${{ if eq( parameters.buildType, 'LIBRARY') }}:
- template: publish_library.yml
parameters:
language: ${{ parameters.language }}
pypiAzureArtifactFeed: ${{ parameters.pypiAzureArtifactFeed }}
publishToPypiOrg: ${{ parameters.publishToPypiOrg }}
publishToCratesIO: ${{ parameters.publishToCratesIO }}
publishToHexPM: ${{ parameters.publishToHexPM }}
- ${{ if eq( parameters.buildType, 'SERVICE')}}:
- template: publish_service.yml
parameters:
language: ${{ parameters.language }}