Skip to content

Commit

Permalink
Merge pull request #18 from jacanchaplais/patch/build-distribute
Browse files Browse the repository at this point in the history
updated GHA build job to run on ubuntu-latest
  • Loading branch information
jacanchaplais authored Aug 14, 2023
2 parents 6191064 + 05b001d commit 6bed646
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ on:
jobs:
build-n-publish:
name: Build and publish to PyPI
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with: { fetch-depth: 0 }
- name: Set up Python 3.9
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install pypa/build
Expand All @@ -22,14 +22,20 @@ jobs:
pip install
build
--user
- name: Build a binary wheel and a source tarball
- name: Build a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
# - name: Publish distributiono Test PyPI
# if: startsWith(github.ref, 'refs/tags')
# uses: pypa/gh-action-pypi-publish@master
# with:
# user: __token__
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository_url: https://test.pypi.org/legacy/
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit 6bed646

Please sign in to comment.