Skip to content

🤖 fix package uploads #45

🤖 fix package uploads

🤖 fix package uploads #45

Workflow file for this run

name: Semantic Release
on:
push:
branches:
- master
jobs:
release:
name: Publish the package
runs-on: ubuntu-latest
concurrency: release
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: 'Publish the package'
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: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: steps.release.outputs.released == 'true' && env.GIT_COMMIT_COMMITTER_NAME != 'github-actions'
- name: Publish package distributions to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@main
if: steps.release.outputs.released == 'true' && env.GIT_COMMIT_COMMITTER_NAME != 'github-actions'
with:
github_token: ${{ secrets.ADMIN_TOKEN }}