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
21 changes: 14 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ name: Build

on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to build'
required: true
type: choice
options:
- master
- refs/remotes/**
push:
branches:
- develop/*
Expand Down Expand Up @@ -146,6 +154,9 @@ jobs:
name: Deploy packages
runs-on: ubuntu-latest
needs: test-wheels
permissions:
id-token: write
contents: read

steps:
- name: Setup Python ${{ matrix.python-version }}
Expand All @@ -159,7 +170,9 @@ jobs:
path: dist

- name: Install twine
run: pip install twine
run: |
pip install twine
pip install -U packaging

- name: Move files to top level directory
run: |
Expand All @@ -180,14 +193,8 @@ jobs:

- name: Upload packages to testpypi
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
env:
TWINE_USERNAME: ${{ secrets.PYPI_TEST_TOKEN_NAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_TEST_API_TOKEN }}
run: python -m twine upload --skip-existing --repository testpypi dist/* --verbose

- name: Upload packages to pypi
if: startsWith(github.ref, 'refs/tags/')
env:
TWINE_USERNAME: ${{ secrets.PYPI_PROD_TOKEN_NAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PROD_API_TOKEN }}
run: python -m twine upload --skip-existing dist/* --verbose
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ classifiers =
Topic :: Scientific/Engineering

[options]
python_requires = >= 3.8
python_requires = >= 3.9
Loading