Skip to content
upload-cloud

GitHub Action

Python Package Release

v0.0.2 Latest version

Python Package Release

upload-cloud

Python Package Release

Automates bumping version, creating changelog, publishing to PyPI, and releasing on GitHub

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Python Package Release

uses: Atticuszz/[email protected]

Learn more about this action in Atticuszz/Poetry-semantic-release

Choose a version

Poetry-semantic-release

it's ci action of conbining the python-semantic-release and Poetry publish to pypi

  1. make sure change ATTICUS_PAT as your personal full permission github token
  2. make sure the PYPI_API_TOKEN as your pypi token
name: CI/CD

on:
  push:
    branches:
      - main
  pull_request:
  workflow_dispatch:
jobs:
  publish:
    #    needs: test
    runs-on: ubuntu-latest
    name: "Bump version, create changelog and publish"
    steps:
      - name: Clone Repository
        uses: actions/checkout@v3
        with:
          ref: ${{ github.ref }}
          fetch-depth: 0
          token: ${{ secrets.ATTICUS_PAT }}

      - name: Python Package Release
        uses: Atticuszz/Poetry-semantic-release@main
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          pypi_token: ${{ secrets.PYPI_API_TOKEN }}