Skip to content

adding environment for test #6

adding environment for test

adding environment for test #6

Workflow file for this run

name: Publish to PyPI

Check failure on line 1 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

(Line: 10, Col: 5): Unexpected value 'environment'
on:
release:
types: [published]
jobs:
build:
uses: ./.github/workflows/build.yml # Build the package artifacts
environment:
name: test
with:
python-version: '3.10'
node-version: 'v18.16.0'
permissions:
contents: write # Required to create artifacts
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
permissions:
id-token: write # Mandatory for trusted publishing
contents: read # Required to access repository files
needs: build # Waits for the build job to finish
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download Python distributions
uses: actions/download-artifact@v4
with:
name: python-distributions
path: dist/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1