https://github.com/apoclyps/python-github-action
https://github.com/apoclyps/python-github-action
actions cloudsmith python
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/apoclyps/python-github-action
- Owner: apoclyps
- Created: 2020-01-22T21:41:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-22T22:29:12.000Z (over 6 years ago)
- Last Synced: 2025-03-22T00:44:37.634Z (about 1 year ago)
- Topics: actions, cloudsmith, python
- Language: Shell
- Size: 111 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cloudsmith - Python Github Action
Interact with Cloudsmith repositories using the cloudmsith cli to push packages, etc. This action uses the Cloudsmith CLI and intends to be as similar to its structure and terminology as possible.
## Cloudsmith API Key
The API key is required for the cloudsmith-cli to work.
Obtain the API Key from [Cloudsmith user settings](https://cloudsmith.io/user/settings/api/). You should use a less priveleged and generic account for Continuous Integration.
Add a secret named `CLOUDSMITH_API_KEY` and a value of the API Key obtained from cloudsmith. Secrets are maintained in the settings of each repository.
Pass your secret to the Action as seen in the Example usage.
## Python File Push - Example
[
](https://github.com/apoclyps/python-github-action/actions?query=workflow%3A%22Push+Python%22)
[](https://cloudsmith.io/~apoclyps/repos/testing-private/packages/detail/python/requests/latest/xf=sdist;xn=requests/)
See [push_python.yml](.github/workflows/push_python.yml)
```yml
name: Push Python
on: push
jobs:
push:
runs-on: ubuntu-latest
name: Python File Push Test
steps:
- uses: actions/checkout@v1
- name: Push
id: push
uses: apoclyps/python-github-action@master
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
format: 'python'
owner: 'apoclyps'
repo: 'testing-private'
file: 'test/fixture/requests-2.22.0.tar.gz'
republish: 'true' # needed since version is not changing
```