-
Notifications
You must be signed in to change notification settings - Fork 29
44 lines (35 loc) · 1.1 KB
/
release-please.yaml
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
41
42
43
44
name: release-please
on:
push:
branches:
- master
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
id: release
with:
release-type: python
package-name: snakefmt
bump-minor-pre-major: true
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-python@v5
if: ${{ steps.release.outputs.release_created }}
with:
python-version: "3.11"
- name: Install and configure Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
if: ${{ steps.release.outputs.release_created }}
run: make install-ci
- name: Build a binary wheel and a source tarball
if: ${{ steps.release.outputs.release_created }}
run: make build
- name: Publish to PyPI
if: ${{ steps.release.outputs.release_created }}
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}