Added triggering of zenodo publish #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2024 German Aerospace Center (DLR) | |
# | |
# SPDX-License-Identifier: CC0-1.0 | |
# SPDX-FileContributor: Michael Meinel | |
# SPDX-FileContributor: Michael Fritzsche | |
name: Upload Python Package | |
on: | |
push: | |
tags: | |
- "*" | |
permissions: write-all | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install build | |
pip install toml | |
- name: Update version number | |
run: | | |
# Note: the following account information will not work on GHES | |
git config user.name "github-actions[bot]" | |
git config user.email "" | |
python increment_version.py | |
git add . | |
git commit -m "generated" | |
git push origin HEAD:main | |
- name: Build package | |
run: python -m build | |
- name: Publish package | |
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
- name: Repository Dispatch | |
uses: peter-evans/repository-dispatch@v3 | |
with: | |
event-type: run_zenodo |