Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit ea46eb1

Browse files
bug: [Consolidate publishing and signing distributions into one step] (#61)
* bug: [Consolidate publishing and signing distributions into one step] * do not edit github release * contriib * workflow_dispatch:
1 parent d1b4fa7 commit ea46eb1

File tree

3 files changed

+14
-46
lines changed

3 files changed

+14
-46
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Publish to PyPi
22

33
on:
4-
push:
5-
tags:
6-
- 'v*'
4+
release:
5+
types: [published]
76
workflow_dispatch:
87

98
jobs:
@@ -34,6 +33,7 @@ jobs:
3433
publish-to-pypi:
3534
name: >-
3635
Publish Python 🐍 distribution 📦 to PyPI
36+
and Sign with Sigstore
3737
if: startsWith(github.ref, 'refs/tags/')
3838
needs:
3939
- build
@@ -43,6 +43,7 @@ jobs:
4343
url: https://pypi.org/p/eppo-server-sdk
4444
permissions:
4545
id-token: write
46+
contents: write
4647

4748
steps:
4849
- name: Download all the dists
@@ -52,46 +53,9 @@ jobs:
5253
path: dist/
5354
- name: Publish distribution 📦 to PyPI
5455
uses: pypa/gh-action-pypi-publish@release/v1
55-
56-
github-release:
57-
name: >-
58-
Sign the Python 🐍 distribution 📦 with Sigstore
59-
and upload them to GitHub Release
60-
needs:
61-
- publish-to-pypi
62-
runs-on: ubuntu-latest
63-
64-
permissions:
65-
contents: write
66-
id-token: write
67-
68-
steps:
69-
- name: Download all the dists
70-
uses: actions/download-artifact@v4
71-
with:
72-
name: python-package-distributions
73-
path: dist/
74-
- name: Sign the dists with Sigstore
75-
uses: sigstore/[email protected]
76-
with:
77-
inputs: >-
78-
./dist/*.tar.gz
79-
./dist/*.whl
80-
- name: Create GitHub Release
81-
env:
82-
GITHUB_TOKEN: ${{ github.token }}
83-
run: >-
84-
gh release create
85-
'${{ github.ref_name }}'
86-
--repo '${{ github.repository }}'
87-
--notes ""
88-
- name: Upload artifact signatures to GitHub Release
89-
env:
90-
GITHUB_TOKEN: ${{ github.token }}
91-
# Upload to GitHub Release using the `gh` CLI.
92-
# `dist/` contains the built packages, and the
93-
# sigstore-produced signatures and certificates.
94-
run: >-
95-
gh release upload
96-
'${{ github.ref_name }}' dist/**
97-
--repo '${{ github.repository }}'
56+
- name: Sign the dists with Sigstore
57+
uses: sigstore/[email protected]
58+
with:
59+
inputs: >-
60+
./dist/*.tar.gz
61+
./dist/*.whl

CONTRIBUTING.md

Whitespace-only changes.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,7 @@ response = JSONResponse(content={"flagConfigurations": flag_config_json})
129129
## Philosophy
130130

131131
Eppo's SDKs are built for simplicity, speed and reliability. Flag configurations are compressed and distributed over a global CDN (Fastly), typically reaching your servers in under 15ms. Server SDKs continue polling Eppo’s API at 30-second intervals. Configurations are then cached locally, ensuring that each assignment is made instantly. Evaluation logic within each SDK consists of a few lines of simple numeric and string comparisons. The typed functions listed above are all developers need to understand, abstracting away the complexity of the Eppo's underlying (and expanding) feature set.
132+
133+
## Contributing
134+
135+
To publish a new version of the SDK, set the version as desired in `eppo_client/version.py`, then create a new Github release. The CI/CD configuration will handle the build and publish to PyPi.

0 commit comments

Comments
 (0)