Skip to content

feat: Changed script name to o2a and set OpenAPI ver to 3.1 (#5) #14

feat: Changed script name to o2a and set OpenAPI ver to 3.1 (#5)

feat: Changed script name to o2a and set OpenAPI ver to 3.1 (#5) #14

name: Build and publish to PyPI
on:
push:
branches:
- main
tags:
- "v*.*.*"
jobs:
build:
name: Reuse build
uses: ./.github/workflows/build.yml
publish-to-pypi:
needs: build
runs-on: ubuntu-latest
environment:
name: production
url: https://pypi.org/p/openapi-to-asciidoc
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
# Download artifacts from the build job
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
name: dist
path: dist
- name: Publish distribution 📦 to PyPI
# if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
sign-artifacts: true