Skip to content

Update README.md

Update README.md #5

Workflow file for this run

name: Publish
on:
push:
branches:
- main
jobs:
publish:
if: github.event.commits[0].author.name == 'semantic-release'
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
# Step 1. Check-out repository so we can access its contents
- uses: actions/checkout@v3
with:
fetch-depth: 0
# Step 2. Set up Python 3.9
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: python -m pip install --upgrade build
- name: Build distribution
run: python -m build
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Test install from TestPyPI
run: |
pip install \
--index-url https://test.pypi.org/simple/ \
--extra-index-url https://pypi.org/simple \
idbsocialdatapy
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}