Skip to content

[maven-release-plugin] prepare release 1.0b4 #6

[maven-release-plugin] prepare release 1.0b4

[maven-release-plugin] prepare release 1.0b4 #6

Workflow file for this run

name: 'deploy to PyPI'
on:
push:
tags:
- '[0-9]+.[0-9]+.?[ab]?[0-9]+'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'
- name: Install build dependencies
run: pip install build twine
- name: Build
env:
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_jjava: ${{ github.ref_name }}
run: |
mvn clean verify -U
python -m build
- name: Upload to PyPI
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: twine upload -r testpypi --disable-progress-bar --verbose dist/*