Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions .github/workflows/action.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: CI
permissions:
contents: read

# Controls when the action will run.
on:
Expand All @@ -22,6 +20,10 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: read
id-token: write

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
lint:
Expand Down Expand Up @@ -483,16 +485,16 @@ jobs:

- name: Install dependencies
run: |
python -m pip install -U build
python -m pip install --upgrade pip build

- name: Build
run: python -m build
run: python -m build --sdist --wheel --outdir dist

- uses: actions/upload-artifact@v4
with:
path: |
dist/*.tar.gz
dist/*.whl
name: python-package
path: dist/*
if-no-files-found: error

#-------------------------------------------------------------------------------
deploy:
Expand All @@ -501,15 +503,19 @@ jobs:

runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

# Only publish when a GitHub Release is created.
if: github.event_name == 'release'
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
name: python-package
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: dist/
skip-existing: true
2 changes: 1 addition & 1 deletion src/peakrdl_python/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@

Variables that describes the peakrdl-python Package
"""
__version__ = "4.0.0"
__version__ = "4.0.0rc2"
Loading