Skip to content

Commit

Permalink
Automatic release workflow (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
VascoSch92 authored Jan 2, 2024
2 parents 1fea985 + 2a8e410 commit 0f09783
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: automatic-release

on:
pull_request:
types:
- closed
branches:
- main

jobs:
upload-release-on-pypi:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Upload release
run: |
python setup.py sdist
twine upload dist/* -u __token__ -p {{ secrets.PYPI_PASSWORD }}
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ The version is represented by three digits: a.b.c.
---
## Unreleased

ENHANCEMENT:
- sequentium.github.workflows.release.yml: workflow for automatic upload on pypi

---
## [0.0.1] - 2024-01-02

Expand Down

0 comments on commit 0f09783

Please sign in to comment.