Skip to content

Temporarily test publishing from PR branch #1

Temporarily test publishing from PR branch

Temporarily test publishing from PR branch #1

name: Publish to TestPyPI
on:
push:
branches:
- master
- tasks/6106
jobs:
testpypi-publish:
name: Upload release to TestPyPI
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/project/rubydj-pyworker/
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Build package distributions
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
python setup.py sdist bdist_wheel
twine check dist/*
- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true
print-hash: true