Skip to content

🥅 print_function is not needed anymore #53

🥅 print_function is not needed anymore

🥅 print_function is not needed anymore #53

Workflow file for this run

name: Semantic Release
on:
push:
branches:
- master
jobs:
release:
name: Create release and publish
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
if: github.repository == 'Data-Only-Greater/convergence'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.ADMIN_TOKEN }}
- name: Expose git commit data
uses: rlespinasse/git-commit-data-action@v1
- name: Wait for tests to succeed
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
running-workflow-name: 'Create release and publish'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
if: env.GIT_COMMIT_COMMITTER_NAME != 'github-actions'
- name: Python Semantic Release
id: release
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.ADMIN_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
if: steps.release.outputs.released == 'true'
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build
if: steps.release.outputs.released == 'true'
- name: Build package
run: python -m build
if: steps.release.outputs.released == 'true'
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: steps.release.outputs.released == 'true'
- name: Publish package distributions to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@main
with:
github_token: ${{ secrets.ADMIN_TOKEN }}
if: steps.release.outputs.released == 'true'