-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RFC: fix CI, add PyPI publish action, poetry 1.6.1 (#9)
* pypi publish action * add testpypi * Update .github/workflows/publish.yml Co-authored-by: martín <[email protected]> * chore(lockfile): lock with poetry 1.6.1 * ci(publish): complete test publish * ci(publish): more specific python version * ci(publish): complete publishing jobs ...maybe missing API token for prod publish if not doing Trusted Publishing * ci(publish): typo * chore: use poetry 1.6.1 * chore: bump & changelog * ci: small fixes * docs(CHANGELOG): nit * rollback version bump * bump: 1.4.24 * ci(validate): fix check_version * ci: rename job per ✨ feedback ✨ * ci: has no pipx * ci(validate): fix check_version * ci(validate): fix check_version --------- Co-authored-by: martín <[email protected]> Co-authored-by: ten <[email protected]>
- Loading branch information
1 parent
753f2a1
commit e5d5b86
Showing
11 changed files
with
146 additions
and
238 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 1.4.23 | ||
current_version = 1.4.24 | ||
commit = False | ||
tag = False | ||
|
||
|
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,64 @@ | ||
name: publish | ||
on: push | ||
|
||
env: | ||
PYTHON_VERSION: 3.10.10 | ||
POETRY_VERSION: 1.6.1 | ||
|
||
jobs: | ||
pypi-publish: | ||
name: Publish Python 🐍 distribution 📦 to PyPI | ||
if: ${{ startsWith(github.ref, 'refs/tags') }} | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/muttlib | ||
permissions: | ||
id-token: write # Mandatory for trusted publishing | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- name: Install Poetry | ||
run: pipx install poetry==${{ env.POETRY_VERSION }} | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
- name: Build package | ||
run: poetry build | ||
|
||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
||
testpypi-publish: | ||
name: Test publish Python 🐍 distribution 📦 to TestPyPI | ||
if: ${{ ! startsWith(github.ref, 'refs/tags') }} | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: testpypi | ||
url: https://test.pypi.org/p/muttlib | ||
permissions: | ||
id-token: write # Mandatory for trusted publishing | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- name: Install Poetry | ||
run: pipx install poetry==${{ env.POETRY_VERSION }} | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
- name: Build package | ||
run: poetry build | ||
|
||
- name: Publish distribution 📦 to TestPyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
skip-existing: true | ||
repository-url: https://test.pypi.org/legacy/ |
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
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
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
Empty file.
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
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
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
Oops, something went wrong.