Skip to content

Commit

Permalink
Changed the workflow for PyPi publication #85
Browse files Browse the repository at this point in the history
Needed to change the workflow to only be triggered via workflow_dispatch as the pushing to test-pypi did not work and as it is safer to trigger it manually then automatically.
  • Loading branch information
GwennyGit committed Jul 13, 2023
1 parent 73a462a commit f5930b6
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish new refineGEMs release to PyPI

on: workflow_dispatch

jobs:
build-n-publish:
name: Build and publish new refineGEMs release to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python3 -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit f5930b6

Please sign in to comment.