Merge pull request #61 from pkgw/zenodo-again

Re-enable Zenodo deposition
This commit is contained in:
Peter Williams 2023-12-14 19:53:18 +00:00 коммит произвёл GitHub
Родитель 5a95ef5c62 d4600ee0ee
Коммит 94765e9e67
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 30 добавлений и 36 удалений

Просмотреть файл

@ -6,12 +6,12 @@ parameters:
default:
- name: linux_37
vmImage: ubuntu-20.04
vmImage: ubuntu-22.04
vars:
PYTHON_SERIES: "3.7"
- name: linux_38
vmImage: ubuntu-20.04
vmImage: ubuntu-22.04
vars:
PYTHON_SERIES: "3.8"
@ -68,7 +68,7 @@ jobs:
- job: coverage
pool:
vmImage: ubuntu-20.04
vmImage: ubuntu-latest
steps:
- template: azure-job-setup.yml
parameters:
@ -97,7 +97,7 @@ jobs:
- job: docs
pool:
vmImage: ubuntu-20.04
vmImage: ubuntu-latest
steps:
- template: azure-job-setup.yml
parameters:

Просмотреть файл

@ -83,26 +83,23 @@ jobs:
env:
PYPI_TOKEN: $(PYPI_TOKEN)
# 2023 Oct: temporarily disabling Zenodo; they have just updated their API and broken
# everything, and we want to ge a release out.
#
# - job: zenodo_publish
# pool:
# vmImage: ubuntu-latest
# variables:
# - group: Deployment Credentials
#
# steps:
# - template: azure-job-setup.yml
# parameters:
# setupCranko: true
#
# - bash: cranko zenodo upload-artifacts --metadata=ci/zenodo.json5 $BASH_WORKSPACE/sdist/*.tar.gz
# displayName: Upload source tarball
# env:
# ZENODO_TOKEN: $(ZENODO_TOKEN)
#
# - bash: cranko zenodo publish --metadata=ci/zenodo.json5
# displayName: Publish to Zenodo
# env:
# ZENODO_TOKEN: $(ZENODO_TOKEN)
- job: zenodo_publish
pool:
vmImage: ubuntu-latest
variables:
- group: Deployment Credentials
steps:
- template: azure-job-setup.yml
parameters:
setupCranko: true
- bash: cranko zenodo upload-artifacts --metadata=ci/zenodo.json5 $BASH_WORKSPACE/sdist/*.tar.gz
displayName: Upload source tarball
env:
ZENODO_TOKEN: $(ZENODO_TOKEN)
- bash: cranko zenodo publish --metadata=ci/zenodo.json5
displayName: Publish to Zenodo
env:
ZENODO_TOKEN: $(ZENODO_TOKEN)

Просмотреть файл

@ -4,7 +4,7 @@ jobs:
- job: sdist
pool:
vmImage: ubuntu-20.04
vmImage: ubuntu-latest
# Need Zenodo credentials to generate DOIs during formal releases. Try not to
# provide credentials otherwise, in case of malicious PRs. But note that such
@ -29,14 +29,11 @@ jobs:
- bash: cranko release-workflow apply-versions
displayName: Apply Cranko versions
# 2023 Oct: temporarily disabling Zenodo; they have just updated their API and broken
# everything, and we want to ge a release out.
#
#- bash: cranko zenodo preregister --metadata=ci/zenodo.json5 wwt_data_formats wwt_data_formats/cli.py CHANGELOG.md
# displayName: "Preregister Zenodo DOI"
# ${{ if and(eq(variables['Build.SourceBranchName'], 'rc'), ne(variables['build.reason'], 'PullRequest')) }}:
# env:
# ZENODO_TOKEN: $(ZENODO_TOKEN)
- bash: cranko zenodo preregister --metadata=ci/zenodo.json5 wwt_data_formats wwt_data_formats/cli.py CHANGELOG.md
displayName: "Preregister Zenodo DOI"
${{ if and(eq(variables['Build.SourceBranchName'], 'rc'), ne(variables['build.reason'], 'PullRequest')) }}:
env:
ZENODO_TOKEN: $(ZENODO_TOKEN)
- bash: |
set -xeuo pipefail