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

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

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

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

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