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.
The API key is required for the cloudsmith-cli to work.
Obtain the API Key from Cloudsmith user settings. 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.
See push_python.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