v0.6.1 #1
Workflow file for this run
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: deploy | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repo | |
uses: actions/[email protected] | |
- name: Set up python | |
uses: actions/[email protected] | |
with: | |
python-version: '3.12' | |
- name: Install pip dependencies | |
run: pip install build | |
- name: List pip dependencies | |
run: pip list | |
- name: Build project | |
run: python3 -m build | |
- name: Upload artifacts | |
uses: actions/[email protected] | |
with: | |
name: pypi-dist | |
path: dist/ | |
pypi: | |
name: pypi | |
needs: | |
- build | |
environment: | |
name: pypi | |
url: https://pypi.org/p/torchgeo | |
permissions: | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download artifacts | |
uses: actions/[email protected] | |
with: | |
name: pypi-dist | |
path: dist/ | |
- name: Publish to PyPI | |
uses: pypa/[email protected] |