From a7ed66c8ac287675617a15800a403c9b4f9f28a8 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Wed, 3 Jul 2024 20:21:30 +0100 Subject: [PATCH] CI: PyPI release - fixes #829 - follow-up to #605 --- .github/workflows/release.yml | 13 +++++++++++++ .gitignore | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..46e02975 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,13 @@ +name: Release +on: {push: {tags: ['v*.*.*']}} +jobs: + pypi: + permissions: {id-token: write} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: {fetch-depth: 0, submodules: recursive} + - uses: actions/setup-python@v5 + with: {python-version: '3.x'} + - uses: casperdcl/deploy-pypi@v2 + with: {build: -s, upload: true} diff --git a/.gitignore b/.gitignore index 0b86f87c..98ba3f41 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,6 @@ __pycache__/ /_cmake_test_compile/ /dcm2niix/_dist_ver.py /dcm2niix/dcm2niix -MANIFEST +/MANIFEST* /*.egg*/ /dist/