diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 3dd4cfe..3f61945 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -1,3 +1,11 @@ +# -*- coding: utf-8 -*- +# +# This file is part of Invenio. +# Copyright (C) 2020-2025 CERN. +# +# Invenio is free software; you can redistribute it and/or modify it +# under the terms of the MIT License; see LICENSE file for more details + name: Publish on: @@ -7,22 +15,5 @@ on: jobs: Publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v7 - - name: Set up Python 3.9 - uses: actions/setup-python@v6 - with: - python-version: 3.9 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel babel - - name: Build package - run: | - python setup.py sdist bdist_wheel - - name: Publish - uses: pypa/gh-action-pypi-publish@v1.14.0 - with: - user: __token__ - password: ${{ secrets.pypi_token }} + uses: inveniosoftware/workflows/.github/workflows/pypi-publish.yml@master + secrets: inherit