Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Bump certifi from 2023.5.7 to 2023.7.22 (#33) #11

Bump certifi from 2023.5.7 to 2023.7.22 (#33)

Bump certifi from 2023.5.7 to 2023.7.22 (#33) #11

name: Release
on:
push:
branches:
- main
- master
jobs:
test-release:
name: Release to TestPyPI
if: "!startsWith(github.ref, 'refs/tags/')"
runs-on: ubuntu-latest
environment:
name: Test PyPI
url: https://test.pypi.org/project/python-jmap
permissions:
id-token: write
contents: write
steps:
- name: Check out the repository
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.10"
- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
- name: Install Poetry
run: |
pip install --constraint=.github/workflows/constraints.txt poetry
poetry --version
- name: Bump version for developmental release
run: |
poetry version patch &&
version=$(poetry version | awk '{ print $2 }') &&
poetry version $version.dev.$(date +%s)
- name: Build package
run: |
poetry build --ansi
- name: Publish package on TestPyPI
uses: pypa/[email protected]
with:
repository-url: https://test.pypi.org/legacy/
- name: Update the release notes
uses: release-drafter/[email protected]
with:
publish: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}