Skip to content

python-package

python-package #1

name: python-package
on:
# push:
# branches:
# - main
workflow_dispatch:
release:
types: [published]
permissions: # Ensure the workflow has permission to push changes

Check failure on line 11 in .github/workflows/python-package.yml

View workflow run for this annotation

GitHub Actions / python-package

Invalid workflow file

The workflow is not valid. .github/workflows/python-package.yml (Line: 11, Col: 13): Unexpected value ''
# contents: write # Allow write access for pushing to the repository
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}