Skip to content

Commit

Permalink
Adds first version of package_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
erikhuck committed Apr 15, 2024
1 parent 24f06f1 commit e0ae0da
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
File renamed without changes.
34 changes: 34 additions & 0 deletions .github/workflows/package_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release the Next Version of the Package

on:
release:
types: [published]
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install build
python3 -m pip install twine
- name: Build package
run: python -m build
- name: Check package
run: python3 -m twine check dist/*
- name: Publish package to Test-PyPi
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
- name: Publish package to PyPi
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
File renamed without changes.

0 comments on commit e0ae0da

Please sign in to comment.