Skip to content

Commit c5a2565

Browse files
authored
OIDC PyPi native (#77)
1 parent d61e06b commit c5a2565

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ permissions:
2929
jobs:
3030
release:
3131
runs-on: ubuntu-latest
32+
permissions:
33+
contents: write
34+
id-token: write
35+
3236
strategy:
3337
matrix:
3438
python-version: [ "3.12" ]
@@ -54,7 +58,7 @@ jobs:
5458
5559
- name: Commit version change
5660
run: |
57-
git config --global user.email "github-tracker-bot@taplytics.com"
61+
git config --global user.email "foundation-admin@devcycle.com"
5862
git config --global user.name "DevCycle Automation"
5963
git add ./devcycle_python_sdk/VERSION.txt
6064
git commit -m "Release ${{steps.prepare-release.outputs.next-release-tag}}"
@@ -81,11 +85,7 @@ jobs:
8185
twine check dist/*
8286
8387
- name: Upload build package to PyPI
84-
run: |
85-
twine upload --non-interactive dist/*
86-
env:
87-
TWINE_USERNAME: __token__
88-
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
88+
uses: pypa/gh-action-pypi-publish@release/v1
8989
if: inputs.prerelease != true && inputs.draft != true
9090

9191
- uses: DevCycleHQ/release-action/[email protected]

.github/workflows/run-test-harness.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ jobs:
1515
with:
1616
sdks-to-test: python
1717
sdk-github-sha: ${{github.event.pull_request.head.sha}}
18-
github-token: ${{ secrets.TEST_HARNESS_GH_SECRET }}

.github/workflows/test_examples.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ jobs:
2525
run: |
2626
cd example && python local_bucketing_client_example.py
2727
env:
28-
DEVCYCLE_SERVER_SDK_KEY: "${{ secrets.DEVCYCLE_SERVER_SDK_KEY }}"
28+
DEVCYCLE_SERVER_SDK_KEY: dvc_server_token_hash
2929
- name: Run cloud bucketing example
3030
run: |
3131
cd example && python cloud_client_example.py
3232
env:
33-
DEVCYCLE_SERVER_SDK_KEY: "${{ secrets.DEVCYCLE_SERVER_SDK_KEY }}"
33+
DEVCYCLE_SERVER_SDK_KEY: dvc_server_token_hash
3434
- name: Run OpenFeature example
3535
run: |
3636
cd example && python openfeature_example.py
3737
env:
38-
DEVCYCLE_SERVER_SDK_KEY: "${{ secrets.DEVCYCLE_SERVER_SDK_KEY }}"
38+
DEVCYCLE_SERVER_SDK_KEY: dvc_server_token_hash

0 commit comments

Comments
 (0)