Skip to content

Add DOI to README.md and CITATION.cff #8

Add DOI to README.md and CITATION.cff

Add DOI to README.md and CITATION.cff #8

Workflow file for this run

name: CI
on:
push:
branches:
- main
- test
tags:
- "*"
pull_request:
branches:
- main
permissions:
contents: read
actions: read
env:
PYTHONDONTWRITEBYTECODE: 1
FORCE_COLOR: 1
PYTHON_VERSION: "3.12"
jobs:
build:
name: Build distribution 👷
runs-on: ubuntu-latest
steps:
- name: Checkout repo 🛎️
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Set up Python 🐍
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: pip
- name: Install build 🧱
run: python3 -m pip install build --user
- name: Build a binary wheel and a source tarball 🛠️
run: python3 -m build
- name: Store the distribution packages 📤
uses: actions/upload-artifact@v5
with:
name: python-package-distributions
path: dist/
pypi:
name: Publish distribution to PyPI 📦
if: startsWith(github.ref, 'refs/tags/')
needs: build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/isimip-ea
permissions:
id-token: write
steps:
- name: Download the distribution packages 📥
uses: actions/download-artifact@v6
with:
name: python-package-distributions
path: dist/
- name: Publish to PyPI 🚀
uses: pypa/gh-action-pypi-publish@release/v1