mirror of
https://github.com/drewcassidy/yaclog.git
synced 2024-09-01 14:58:58 +00:00
Compare commits
No commits in common. "0ca8609bb74c3d416e501f7670be4a38aba6913b" and "7a8b3c716073a8273c5ec5f945fedb6fd861880b" have entirely different histories.
0ca8609bb7
...
7a8b3c7160
16
.github/workflows/python-publish.yml
vendored
16
.github/workflows/python-publish.yml
vendored
@ -47,12 +47,6 @@ jobs:
|
|||||||
needs: test
|
needs: test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
||||||
environment:
|
|
||||||
name: pypi
|
|
||||||
url: https://pypi.org/p/yaclog
|
|
||||||
permissions:
|
|
||||||
id-token: write
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@ -62,19 +56,25 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '>=3.8'
|
python-version: '>=3.8'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
python -m pip install setuptools wheel twine
|
||||||
|
|
||||||
- name: Install pypa/build
|
- name: Install pypa/build
|
||||||
run: python -m pip install build --user
|
run: python -m pip install build --user
|
||||||
|
|
||||||
- name: Build a binary wheel and source tarball
|
- name: Build a binary wheel and source tarball
|
||||||
run: python -m build --sdist --wheel --outdir dist/
|
run: python -m build --sdist --wheel --outdir dist/
|
||||||
|
|
||||||
- name: Get Changelog Information
|
- name: Get version info
|
||||||
id: yaclog-show
|
id: yaclog-show
|
||||||
uses: ./
|
uses: ./
|
||||||
# self-hosting!
|
|
||||||
|
|
||||||
- name: Publish to PyPI
|
- name: Publish to PyPI
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
with:
|
||||||
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
|
|
||||||
- name: Publish to Github
|
- name: Publish to Github
|
||||||
run: |
|
run: |
|
||||||
|
11
CHANGELOG.md
11
CHANGELOG.md
@ -2,17 +2,6 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file
|
All notable changes to this project will be documented in this file
|
||||||
|
|
||||||
## Version 1.4.2 - 2024-08-27
|
|
||||||
|
|
||||||
### Fixed
|
|
||||||
|
|
||||||
- Fixed package failing to install without git history
|
|
||||||
|
|
||||||
### Added
|
|
||||||
|
|
||||||
- Added the ability to specify the changelog path in the action
|
|
||||||
|
|
||||||
|
|
||||||
## Version 1.4.1 - 2024-08-25
|
## Version 1.4.1 - 2024-08-25
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
27
action.yaml
27
action.yaml
@ -1,13 +1,12 @@
|
|||||||
name: Yaclog
|
name: Yaclog
|
||||||
description: Get version information from a changelog
|
description: >
|
||||||
|
Get version information from a changelog, and optionally create a new release.
|
||||||
|
The `yaclog` command is made available for use in future steps.
|
||||||
branding:
|
branding:
|
||||||
icon: file-text
|
icon: file-text
|
||||||
color: orange
|
color: orange
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
changelog-path:
|
|
||||||
description: "Path of the changelog markdown file"
|
|
||||||
|
|
||||||
markdown:
|
markdown:
|
||||||
description: If outputs should be in markdown format or not
|
description: If outputs should be in markdown format or not
|
||||||
default: 'true'
|
default: 'true'
|
||||||
@ -46,21 +45,21 @@ runs:
|
|||||||
|
|
||||||
- name: Setup Yaclog
|
- name: Setup Yaclog
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: pipx install --python ${{ steps.setup-python.outputs.python-path }} ${{ github.action_path }}
|
||||||
[[ "$ACTION_REF" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_YACLOG="$ACTION_REF"
|
|
||||||
pipx install --python ${{ steps.setup-python.outputs.python-path }} ${{ github.action_path }}
|
|
||||||
env:
|
|
||||||
ACTION_REF: ${{ github.action_ref }}
|
|
||||||
|
|
||||||
- name: Create New Release
|
- name: Create New Release
|
||||||
shell: bash
|
shell: bash
|
||||||
if: ${{ inputs.release }}
|
if: ${{ inputs.release }}
|
||||||
run: yaclog release --yes --commit ${{ inputs.release }}
|
run: yaclog release --yes --commit ${{ inputs.release }}
|
||||||
|
|
||||||
- name: Get Changelog Information
|
- name: Get Version Information
|
||||||
id: yaclog-show
|
id: yaclog-show
|
||||||
shell: bash
|
shell: bash
|
||||||
run: >
|
run: |
|
||||||
yaclog ${{ inputs.changelog-path && format('--path {0}', inputs.changelog-path) }}
|
yaclog show ---gh-actions ${{ inputs.markdown && '--markdown' }} >> "$GITHUB_OUTPUT"
|
||||||
show ---gh-actions ${{ inputs.markdown && '--markdown' }}
|
# output like so:
|
||||||
| tee -a "$GITHUB_OUTPUT"
|
# name=Version 1.3.0
|
||||||
|
# header=Version 1.3.0 - 2024-08-08
|
||||||
|
# version=1.3.0
|
||||||
|
# body_file={path to file containing version body}
|
||||||
|
# changelog={path to changelog}
|
@ -57,7 +57,6 @@ Changelog = "https://github.com/drewcassidy/yaclog/blob/main/CHANGELOG.md"
|
|||||||
Docs = "https://yaclog.readthedocs.io/"
|
Docs = "https://yaclog.readthedocs.io/"
|
||||||
|
|
||||||
[tool.setuptools_scm]
|
[tool.setuptools_scm]
|
||||||
fallback_version = "0.0.0"
|
|
||||||
|
|
||||||
[tool.setuptools.packages.find]
|
[tool.setuptools.packages.find]
|
||||||
include = ["yaclog*"]
|
include = ["yaclog"]
|
Loading…
Reference in New Issue
Block a user