Skip to content

v0.0.3

v0.0.3 #3

Workflow file for this run

name: Upload Python Package
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/notehub-py
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
defaults:
run:
working-directory: ./src
steps:
- name: Checkout code
uses: actions/checkout@v4
# https://github.com/marketplace/actions/auto-changelog
# require commit format are "type(category): description [flag]"
- name: Generate release changelog
uses: ardalanamini/auto-changelog@v4
id: changelog
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
commit-types: |
breaking: Breaking Changes
feat: New Features
fix: Bug Fixes
revert: Reverts
perf: Performance Improvements
refactor: Refactors
deps: Dependencies
docs: Documentation Changes
style: Code Style Changes
build: Build System
ci: Continuous Integration
test: Tests
chore: Chores
other: Other Changes
default-commit-type: Other Changes
mention-authors: true
include-pr-links: true
use-github-autolink: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install build
- name: Build package
run: |
python3 -m pip install --upgrade build
python3 -m build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: ./src/dist/