-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure GitHub to automate publishing DAG Factory in PyPI (#255)
Automate the release process using GitHub actions so we can consistently make release 0.20.0 and future releases. As part of this change, I've already generated a PyPI upload token and configured the environment variable `PYPI_TOKEN` as a GitHub secret.
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Publish-Package: | ||
if: github.event_name == 'release' | ||
name: Build and publish Python 🐍 distributions 📦 to PyPI | ||
needs: | ||
- Static-Check | ||
- Run-Unit-Tests | ||
- Code-Coverage | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
architecture: 'x64' | ||
- run: pip3 install hatch | ||
- run: hatch build | ||
- run: hatch publish | ||
env: | ||
HATCH_INDEX_USER: __token__ | ||
HATCH_INDEX_AUTH: ${{ secrets.PYPI_TOKEN }} |
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