Skip to content

CI: setup release artifacts build job and upload with trusted publishing #1

CI: setup release artifacts build job and upload with trusted publishing

CI: setup release artifacts build job and upload with trusted publishing #1

Workflow file for this run

name: release

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

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

(Line: 9, Col: 14): Unexpected value ''
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
runs-on: ubuntu-latest
strategy:
steps:
- uses: actions/checkout@v4
- run: python -m pip install build
- run: python -m build
- uses: actions/upload-artifact@v4
with:
path: dist/*
upload:
needs: build
runs-on: ubuntu-latest
environment: upload
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
merge-multiple: true
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1