Skip to content

Commit 330c817

Browse files
committed
Pypi publishing automation
1 parent c40be49 commit 330c817

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

.github/workflows/pypi-publish.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
build-n-publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Python 3.9
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: 3.9
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install setuptools wheel
21+
- name: Build package
22+
run: |
23+
python setup.py sdist bdist_wheel
24+
- name: Publish
25+
uses: pypa/[email protected]
26+
with:
27+
user: __token__
28+
password: ${{ secrets.pypi_token }}

codemeta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"codeRepository": "https://github.com/caltechlibrary/caltechdata_api",
77
"issueTracker": "https://github.com/caltechlibrary/caltechdata_api/issues",
88
"license": "https://data.caltech.edu/license",
9-
"version": "1.4.5",
9+
"version": "1.5.0",
1010
"author": [
1111
{
1212
"@type": "Person",
@@ -21,7 +21,7 @@
2121
}],
2222
"developmentStatus": "active",
2323
"downloadUrl":
24-
"https://github.com/caltechlibrary/caltechdata_api/archive/1.4.3.zip",
24+
"https://github.com/caltechlibrary/caltechdata_api/archive/1.5.0.zip",
2525
"keywords": [
2626
"GitHub",
2727
"metadata",

0 commit comments

Comments
 (0)