-
Notifications
You must be signed in to change notification settings - Fork 713
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create github action for automatically cleaning up test pypi.
Run it before uploading to test pypi in kolibri release workflow.
- Loading branch information
Showing
2 changed files
with
32 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Cleanup TestPyPi | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
TESTPYPI_API_TOKEN: | ||
required: true | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pypi-cleanup | ||
- name: Cleanup TestPyPi | ||
env: | ||
PYPI_CLEANUP_PASSWORD: ${{ secrets.TESTPYPI_API_TOKEN }} | ||
run: pypi-cleanup --host https://test.pypi.org --package kolibri --leave-most-recent-only --username __token__ |
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