-
Notifications
You must be signed in to change notification settings - Fork 14
40 lines (32 loc) · 861 Bytes
/
release.yml
File metadata and controls
40 lines (32 loc) · 861 Bytes
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
35
36
37
38
39
40
name: Release
on:
push:
tags:
- '**'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
env:
PIP_ONLY_BINARY: ":all:"
jobs:
release:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/resample
permissions:
id-token: write
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # needed by setuptools_scm
- uses: actions/setup-python@v6
with:
python-version: '3.11'
- run: python -m pip install --upgrade pip build
- run: python -m build
- run: python -m pip install --prefer-binary $(echo dist/*.whl)'[test]'
- run: python -m pytest
- uses: pypa/gh-action-pypi-publish@release/v1
if: github.event_name == 'push' && contains(github.event.ref, '/tags/')