Using hostname of the container instead #87
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nightly build | |
on: | |
push: | |
branches: | |
- "dev" | |
paths: | |
- "**.py" | |
jobs: | |
test: | |
name: Python tests and checks | |
uses: ./.github/workflows/sub_testing.yml | |
build-n-publish: | |
name: Build and publish Python 🐍 distributions to TestPyPI 📦 | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- uses: actions/checkout@master | |
with: | |
submodules: true | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install requirements | |
run: python -m pip install --user build | |
- name: Cleaning | |
run : python setup.py clean | |
- name: Build Exegol | |
run: python -m build --sdist --outdir dist/ . | |
- name: Publish distribution 📦 to Test PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | |
repository-url: https://test.pypi.org/legacy/ | |
skip-existing: true |