-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e85c4e6
commit c20d476
Showing
2 changed files
with
18 additions
and
6 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 |
---|---|---|
|
@@ -2,7 +2,8 @@ name: Publish package to PyPI | |
|
||
on: | ||
release: | ||
types: [created] | ||
types: | ||
- published | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
@@ -11,20 +12,31 @@ jobs: | |
runs-on: ubuntu-latest | ||
environment: release | ||
permissions: | ||
# Used to authenticate to PyPI via OIDC. | ||
# Used to sign the release's artifacts with sigstore-python. | ||
id-token: write | ||
|
||
# Used to attach signing artifacts to the published release. | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Build | ||
- name: build | ||
run: | | ||
python -m pip install poetry | ||
poetry install --without test,docs | ||
poetry build | ||
- name: Publish package | ||
- name: publish | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
||
- name: sign | ||
uses: sigstore/[email protected] | ||
with: | ||
inputs: ./dist/*.whl ./dist/*.tar.gz | ||
release-signing-artifacts: true |
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,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "powerline-k8s" | ||
version = "1.5.0" | ||
version = "1.5.1" | ||
description = "A custom Powerline segment for displaying the current Kubernetes context and namespace" | ||
authors = ["Jordan Duabe <[email protected]>"] | ||
license = "MIT" | ||
|