Update conf.py #113
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 | |
on: | |
push: | |
branches: | |
- master | |
permissions: write-all | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install hatch | |
- name: Set env var | |
id: set-env-var | |
run: | | |
VERSION_NUMBER= | |
echo "VERSION_NUMBER=$(python -c 'import bigtree; print(bigtree.__version__)')" >> $GITHUB_OUTPUT | |
- name: Create release | |
uses: ncipollo/release-action@v1 | |
env: | |
VERSION_NUMBER: ${{ steps.set-env-var.outputs.VERSION_NUMBER }} | |
with: | |
name: v${{ env.VERSION_NUMBER }} | |
tag: ${{ env.VERSION_NUMBER }} | |
generateReleaseNotes: true | |
makeLatest: true | |
- name: Build package | |
run: hatch build | |
- name: Publish package | |
env: | |
HATCH_USER: ${{ secrets.HATCH_USER }} | |
HATCH_AUTH: ${{ secrets.HATCH_AUTH }} | |
run: hatch publish -u $HATCH_USER -a $HATCH_AUTH |