Skip to content

Commit

Permalink
Pypi publishing automation
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorrell committed Nov 15, 2023
1 parent c40be49 commit 330c817
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pypi-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish

on:
push:
tags:
- v*

jobs:
build-n-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Publish
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_token }}
4 changes: 2 additions & 2 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"codeRepository": "https://github.com/caltechlibrary/caltechdata_api",
"issueTracker": "https://github.com/caltechlibrary/caltechdata_api/issues",
"license": "https://data.caltech.edu/license",
"version": "1.4.5",
"version": "1.5.0",
"author": [
{
"@type": "Person",
Expand All @@ -21,7 +21,7 @@
}],
"developmentStatus": "active",
"downloadUrl":
"https://github.com/caltechlibrary/caltechdata_api/archive/1.4.3.zip",
"https://github.com/caltechlibrary/caltechdata_api/archive/1.5.0.zip",
"keywords": [
"GitHub",
"metadata",
Expand Down

0 comments on commit 330c817

Please sign in to comment.