feat: exporting downloaders from main file #48
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: Development Pypi | |
on: | |
push: | |
branches: | |
- "dev" | |
jobs: | |
pypi: | |
name: Pypi | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python | |
uses: actions/setup-python@master | |
with: | |
python-version: 3.9 | |
- name: Creating Variable Outputs | |
id: vars | |
run: echo ::set-output name=commit::$(git rev-parse --short "$GITHUB_SHA") | |
- name: Checking folder | |
run: | | |
ls -la | |
- name: Create dist folder | |
run: | | |
export NHENTAI_ENVIRONMENT=dev | |
python setup.py sdist --dist-dir=./dev_dist | |
- name: Checking folder | |
run: | | |
ls | |
- name: Publish a Python distribution to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
packages_dir: dev_dist/ |