Skip to content

apoclyps/python-github-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. 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

Package Workflow Status

Latest Version @ Cloudsmith

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

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published