Skip to content

Update imports for splitting mth5 to other modules #22

Update imports for splitting mth5 to other modules

Update imports for splitting mth5 to other modules #22

Workflow file for this run

name: Publish release
on:
pull_request:
types: [closed]
branches:
- main
permissions:
contents: write
id-token: write
jobs:
publish:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install tools
run: pip install bump-my-version build
- name: Extract version
id: version
run: |
VERSION=$(bump-my-version show current)
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ steps.version.outputs.version }}
name: v${{ steps.version.outputs.version }}
body_path: CHANGELOG.md
generate_release_notes: false
- name: Build package
run: python -m build
- name: Publish to TestPyPI
id: test-pypi
uses: pypa/gh-action-pypi-publish@v1.13.0
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true
attestations: false
- name: Publish to PyPI
if: steps.test-pypi.outcome == 'success'
uses: pypa/gh-action-pypi-publish@v1.13.0
with:
skip-existing: true