-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) · 1.02 KB
/
deploy.yml
File metadata and controls
34 lines (32 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: PyPi Release
on:
push:
pull_request:
jobs:
build:
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/${{ github.event.repository.name }}
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Conda config
run: echo -e "channels:\n - conda-forge\n" > .condarc
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: "3.13"
miniforge-version: latest
condarc-file: .condarc
environment-file: .ci_support/environment.yml
- name: Convert dependencies
run: |
sed -i 's/==/>=/g' pyproject.toml; cat pyproject.toml
git update-index --assume-unchanged pyproject.toml src/pyauthenticator/_version.py
- name: Build
shell: bash -l {0}
run: hatchling build -t sdist -t wheel
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1