Skip to content

Updated the workflow to ensure that sudo is not used when running the… #19

Updated the workflow to ensure that sudo is not used when running the…

Updated the workflow to ensure that sudo is not used when running the… #19

Workflow file for this run

name: Release
on:
push:
branches:
- main
permissions:
contents: write
defaults:
run:
working-directory: ./
jobs:
publish-package:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install poetry
run: |
pipx install poetry
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version-file: 'pyproject.toml'
cache: 'poetry'
- name: Install Semantic Release
run: |
npm install --global semantic-release $(jq -r '.plugins[] | if type == "string" then . else .[0] end' .releaserc.json)
- name: Run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: npx semantic-release