Skip to content

Commit

Permalink
Configure sigstore
Browse files Browse the repository at this point in the history
  • Loading branch information
j4ckofalltrades committed Aug 14, 2023
1 parent e85c4e6 commit c20d476
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Publish package to PyPI

on:
release:
types: [created]
types:
- published
workflow_dispatch:

jobs:
Expand All @@ -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
2 changes: 1 addition & 1 deletion pyproject.toml
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"
Expand Down

0 comments on commit c20d476

Please sign in to comment.