Skip to content

Only run one build workflow concurrently #9

Only run one build workflow concurrently

Only run one build workflow concurrently #9

Workflow file for this run

name: Publish Python Package
on:
push:
tags:
- 'v*.*.*'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build-and-publish:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.7'
- name: Install build tools
run: |
python3 -m pip install --upgrade pip --force
pip3 install -U setuptools
pip3 install build twine wheel
pip3 install -U pkginfo
- name: Build the package
run: python3 -m build
- name: List files
run: |
ls
- name: Upload
uses: actions/upload-artifact@v4
with:
name:
publish:
- name: Publish to PyPI

Check failure on line 45 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 45
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: twine upload dist/*