зеркало из https://github.com/microsoft/asconnect.git
Migrate to Azure publishing gateway (#28)
* Create Azure Pipeline for publishing * Fix typo * Add ESRP release process * Update main publisher * Bump to 3.0.2 for testing * Remove github publish action * Disable CI for publishing * Force refresh PR * Disable CI on Azure UI instead * Disabled on PR validation --------- Co-authored-by: Jasper Guo <jiuboguo@microsoft.com>
This commit is contained in:
Родитель
f55db3fdbc
Коммит
dda4b6396c
|
@ -0,0 +1,39 @@
|
|||
trigger:
|
||||
tags:
|
||||
include:
|
||||
- '*'
|
||||
|
||||
pool:
|
||||
vmImage: 'ubuntu-latest'
|
||||
|
||||
jobs:
|
||||
- job: Publish
|
||||
|
||||
steps:
|
||||
- task: UsePythonVersion@0
|
||||
inputs:
|
||||
versionSpec: '3.x'
|
||||
|
||||
- script: |
|
||||
curl -sSL https://install.python-poetry.org | python3 -
|
||||
displayName: 'Install Poetry'
|
||||
|
||||
- script: |
|
||||
poetry install
|
||||
displayName: 'Install dependencies'
|
||||
|
||||
- script: |
|
||||
poetry build
|
||||
displayName: 'Build'
|
||||
|
||||
- task: EsrpRelease@2
|
||||
inputs:
|
||||
ConnectedServiceName: 'OM-ESRP-Release-Publishing'
|
||||
Intent: 'PackageDistribution'
|
||||
ContentType: 'PyPi'
|
||||
PackageLocation: 'dist'
|
||||
Owners: 'jiuboguo@microsoft.com'
|
||||
Approvers: 'jiuboguo@microsoft.com'
|
||||
ServiceEndpointUrl: 'https://api.esrp.microsoft.com'
|
||||
MainPublisher: 'OutlookMobileiOSESRPPublisher'
|
||||
DomainTenantId: '72f988bf-86f1-41af-91ab-2d7cd011db47'
|
|
@ -1,36 +0,0 @@
|
|||
name: Publish
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
- name: Install Poetry
|
||||
run: |
|
||||
curl -sSL https://install.python-poetry.org | python3 -
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
poetry install
|
||||
|
||||
- name: Publish
|
||||
env:
|
||||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
||||
run: |
|
||||
poetry config pypi-token.pypi $PYPI_TOKEN
|
||||
poetry publish --build
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "asconnect"
|
||||
version = "3.0.1"
|
||||
version = "3.0.2"
|
||||
description = "A wrapper around the Apple App Store Connect APIs"
|
||||
|
||||
license = "MIT"
|
||||
|
|
Загрузка…
Ссылка в новой задаче