Skip to content

fix: no Changelog in workflow #87

fix: no Changelog in workflow

fix: no Changelog in workflow #87

Workflow file for this run

name: Release
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
environment: publish
concurrency: release
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.8.16'
- name: Set user info
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
# This action uses Python Semantic Release v8
- name: Python Semantic Release
id: release
uses: python-semantic-release/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
push: true
changelog: true
strict: true
verbosity: 2
git_committer_name: "github-actions"
git_committer_email: "[email protected]"
- name: Publish | Upload to GitHub Release Assets
uses: python-semantic-release/[email protected]
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.release.outputs.tag }}
# - name: Upload | Distribution Artifacts
# uses: actions/upload-artifact@v4
# with:
# name: distribution-artifacts
# path: dist
# if-no-files-found: error
- name: Build
run: |
bash .ci/install-dev.sh && bash .ci/install-cpu.sh
source .env/bin/activate
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
# See https://github.com/actions/runner/issues/1173
if: steps.release.outputs.released == 'true'