Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gunthergl committed Jan 16, 2024
1 parent 51a0b35 commit 6d57092
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 24 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,25 +147,25 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true

# publish:
# needs: finalize
# if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags/') }}
# runs-on: ubuntu-latest
# permissions:
# contents: write
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with: {python-version: "3.11"}
# - name: Retrieve pre-built distribution files
# uses: actions/download-artifact@v3
# with: {name: python-distribution-files, path: dist/}
# - name: Publish Package
# env:
# # TODO: Set your PYPI_TOKEN as a secret using GitHub UI
# # - https://pypi.org/help/#apitoken
# # - https://docs.github.com/en/actions/security-guides/encrypted-secrets
# TWINE_REPOSITORY: pypi
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
# run: pipx run tox -e publish
publish:
needs: finalize
if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with: {python-version: "3.11"}
- name: Retrieve pre-built distribution files
uses: actions/download-artifact@v3
with: {name: python-distribution-files, path: dist/}
- name: Publish Package
env:
# TODO: Set your PYPI_TOKEN as a secret using GitHub UI
# - https://pypi.org/help/#apitoken
# - https://docs.github.com/en/actions/security-guides/encrypted-secrets
TWINE_REPOSITORY: pypi
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: pipx run tox -e publish
14 changes: 12 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ Package setup
This project has been set up using PyScaffold 4.4. For details and usage
information on PyScaffold see https://pyscaffold.org/::


.. code-block:: bash
pip install pyscaffold
putup nbnode
cd nbnode
Expand All @@ -88,9 +91,16 @@ information on PyScaffold see https://pyscaffold.org/::
pip install pre-commit
pre-commit autoupdate
Migration to github:
# Migration to github:
putup --update . --github
# pypi:
# login, then create a new token https://pypi.org/manage/account/token/
# re-comment (after I commented them out)
# .github/workflows/ci.yml:
# publish: [...]
putup --update . --github
Expand Down

0 comments on commit 6d57092

Please sign in to comment.