Skip to content

Commit

Permalink
chore: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCrane committed Feb 5, 2023
1 parent 626b0e2 commit b90ffb4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,30 @@ name: Upload Python Package

on:
release:
types: [created]
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: '3.8'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine build
- name: Build wheels
run: python setup.py bdist_wheel

- name: Upload wheels
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload dist/*
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
1 change: 0 additions & 1 deletion mkdocs_changelog_plugin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import yaml
from jinja2 import Template
from rich import print

from mkdocs.config import config_options
from mkdocs.plugins import BasePlugin
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def read(fname):

setup(
name='mkdocs-changelog-plugin',
version='0.1.2',
version='0.1.3',
author='TonyCrane',
author_email='me@tonycrane.cc',
description='A MkDocs plugin that create changelog in a page',
Expand Down

0 comments on commit b90ffb4

Please sign in to comment.