Skip to content

Commit

Permalink
Merge pull request #13 from FAIRmat-NFDI/publish-workflow
Browse files Browse the repository at this point in the history
update publish workflow to align with other plugins
  • Loading branch information
lukaspie authored Dec 2, 2024
2 parents 6fa870e + 9417986 commit cb8c03f
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,32 @@ on:
release:
types: [published]

env:
UV_SYSTEM_PYTHON: true

jobs:
deploy:
name: Upload release to PyPI
runs-on: ubuntu-latest

environment:
name: pypi
url: https://pypi.org/p/pynxtools-raman
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
# submodules: recursive
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
curl -LsSf https://astral.sh/uv/install.sh | sh
uv pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit cb8c03f

Please sign in to comment.