Skip to content

Commit

Permalink
feat: publish
Browse files Browse the repository at this point in the history
  • Loading branch information
afuetterer committed Oct 27, 2023
1 parent 7310a6f commit fd092f0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 36 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,36 @@ jobs:
github_token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
git_committer_name: github-actions[bot]
git_committer_email: 41898282+github-actions[bot]@users.noreply.github.com

- run: ls -R

- run: ls dist


- name: Upload wheel and sdist
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: dist
path: |
dist/*.tar.gz
dist/*.whl
if-no-files-found: error
retention-days: 1

publish:
# disables this workflow from running in a repository that is not part of the indicated organization/user
if: github.repository_owner == 'afuetterer'
runs-on: ubuntu-22.04
needs:
- release
environment:
name: publish
url: https://test.pypi.org/p/oaipmh-scythe/
permissions:
id-token: write # needed for trusted publishing
steps:
- name: Download wheel and sdist
uses: actions/download-artifact@v3
with:
name: dist
- name: Display structure of downloaded files
run: ls -R
- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e # v1.8.10
with:
repository-url: https://test.pypi.org/legacy/
verbose: true
29 changes: 0 additions & 29 deletions .github/workflows/publish.yml

This file was deleted.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ version_variables = [
"src/oaipmh_scythe/__init__.py:__version__",
]
build_command = """
python -m pip list
python -m pip install build
python -m build
"""
Expand Down

0 comments on commit fd092f0

Please sign in to comment.