Skip to content

Commit 9c772ea

Browse files
committed
Refactor workflows and update shields in README.md
1 parent 885fa52 commit 9c772ea

File tree

3 files changed

+57
-68
lines changed

3 files changed

+57
-68
lines changed
Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test 🧪
1+
name: ci
22

33
on:
44
push:
@@ -77,3 +77,53 @@ jobs:
7777
github-token: ${{ secrets.GITHUB_TOKEN }}
7878
parallel-finished: true
7979
carryforward: "3.7,3.14"
80+
81+
build:
82+
name: Build distribution 👷
83+
runs-on: ubuntu-latest
84+
85+
steps:
86+
- name: Checkout repo 🛎️
87+
uses: actions/checkout@v6
88+
with:
89+
persist-credentials: false
90+
91+
- name: Set up Python 🐍
92+
uses: actions/setup-python@v6
93+
with:
94+
python-version: "3.x"
95+
96+
- name: Install build 🧱
97+
run: python3 -m pip install build --user
98+
99+
- name: Build a binary wheel and a source tarball 🛠️
100+
run: python3 -m build
101+
102+
- name: Store the distribution packages 📤
103+
uses: actions/upload-artifact@v5
104+
with:
105+
name: python-package-distributions
106+
path: dist/
107+
108+
pypi:
109+
name: Publish distribution to PyPI 📦
110+
if: startsWith(github.ref, 'refs/tags/')
111+
needs: build
112+
runs-on: ubuntu-latest
113+
114+
environment:
115+
name: pypi
116+
url: https://pypi.org/p/django-datacite
117+
118+
permissions:
119+
id-token: write
120+
121+
steps:
122+
- name: Download the distribution packages 📥
123+
uses: actions/download-artifact@v6
124+
with:
125+
name: python-package-distributions
126+
path: dist/
127+
128+
- name: Publish to PyPI 🚀
129+
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/release.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
django-datacite
22
===============
33

4-
[![Latest Release](https://img.shields.io/pypi/v/django-datacite)](https://pypi.org/project/django-datacite/)
5-
[![Python Version](https://img.shields.io/badge/python->=3.8-blue)](https://www.python.org/)
6-
[![License](https://img.shields.io/badge/license-MIT-green)](https://github.com/ISI-MIP/django-datacite/blob/master/LICENSE)
7-
[![pytest Workflow Status](https://github.com/ISI-MIP/django-datacite/actions/workflows/pytest.yml/badge.svg)](https://github.com/ISI-MIP/django-datacite/actions/workflows/pytest.yml)
8-
[![Coverage Status](https://coveralls.io/repos/github/ISI-MIP/django-datacite/badge.svg?branch=master)](https://coveralls.io/github/ISI-MIP/django-datacite?branch=master)
4+
[![Latest release](https://img.shields.io/pypi/v/django-datacite.svg?style=flat)](https://pypi.python.org/pypi/django-datacite/)
5+
[![Python versions](https://img.shields.io/pypi/pyversions/django-datacite.svg?style=flat)](https://www.python.org)
6+
[![License](https://img.shields.io/github/license/ISI-MIP/django-datacite?style=flat)](https://github.com/rdmorganiser/django-datacite/blob/main/LICENSE)
7+
[![CI status](https://github.com/ISI-MIP/django-datacite/actions/workflows/ci.yml/badge.svg)](https://github.com/ISI-MIP/django-datacite/actions/workflows/ci.yml)
8+
[![Coverage status](https://coveralls.io/repos/ISI-MIP/django-datacite/badge.svg?branch=main&service=github)](https://coveralls.io/github/ISI-MIP/django-datacite?branch=main)
9+
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.18376443.svg)](https://doi.org/10.5281/zenodo.18376443)
910

1011
A Django app to properly model the [DataCite Metadata Schema](https://schema.datacite.org/) in a relational database, with full integration into the Django admin interface. The app is *slightly* opinionated in a way to make it better usable as a DOI registration database. Names (`creators` and `contributors`) and identifiers (for the resources, but also for `alternativeIdentifiers` and `relatedIdentifiers`) are stored in separate database tables and can be reused for different resources.
1112

0 commit comments

Comments
 (0)