Skip to content

Commit 9c09b56

Browse files
committed
ci: added pypi publish workflow
1 parent 7c50d92 commit 9c09b56

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# This file is part of Invenio.
4+
# Copyright (C) 2024 CERN.
5+
#
6+
# Invenio is free software; you can redistribute it and/or modify it
7+
# under the terms of the MIT License; see LICENSE file for more details
8+
9+
name: Publish
10+
11+
on:
12+
push:
13+
tags:
14+
- v*
15+
16+
jobs:
17+
Publish:
18+
runs-on: ubuntu-20.04
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v2
26+
with:
27+
python-version: 3.7
28+
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
pip install setuptools wheel babel
33+
34+
- name: Build package
35+
run: python setup.py sdist bdist_wheel
36+
37+
- name: Publish on PyPI
38+
uses: pypa/[email protected]
39+
with:
40+
user: __token__
41+
# The token is provided by the inveniosoftware organization
42+
password: ${{ secrets.pypi_token }}

0 commit comments

Comments
 (0)