Minor bug fixes - fixed a proxy issue in EsriConnector and data downl… #43
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: Upload Python Package to PyPI | |
on: | |
push: | |
branches: | |
- main | |
release: | |
types: [published] | |
jobs: | |
deploy_docs: | |
name: Deploy Documentation to GitHub Pages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Build Documentation | |
run: | | |
cd docs | |
make html | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/build/html | |
publish_branch: gh-pages | |
extra_files: ".nojekyll" | |
build: | |
name: Build and upload package to PyPI | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1: Check out the repository | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
# Step 2: Set up Python environment | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x # Replace with your desired Python version | |
# Step 3: Install dependencies required for packaging | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install build twine | |
# Step 4: Build the package | |
- name: Build the package | |
run: python -m build | |
# Step 5: Upload the package to PyPI | |
- name: Upload to PyPI | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} # PyPI API token stored as a secret in GitHub | |
run: | | |
python -m twine upload dist/* | |
# Optional Step: Clean up build artifacts | |
- name: Clean up | |
run: rm -rf dist |