-
Notifications
You must be signed in to change notification settings - Fork 15
45 lines (38 loc) · 1.13 KB
/
Copy pathrelease-please.yml
File metadata and controls
45 lines (38 loc) · 1.13 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
35
36
37
38
39
40
41
42
43
44
45
on:
push:
branches:
- main
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: GoogleCloudPlatform/release-please-action@v3
id: release
with:
release-type: python
package-name: snakemake-interface-executor-plugins
publish-pypi:
runs-on: ubuntu-latest
needs: release-please
permissions:
id-token: write
if: ${{ needs.release-please.outputs.release_created }}
steps:
- uses: actions/checkout@v4
- name: Install Pixi
uses: prefix-dev/setup-pixi@v0.8.3
with:
environments: publish
pixi-version: v0.42.1
- name: Build source and wheel distribution + check build
# this will build the source and wheel into the dist/ directory
run: |
pixi run --environment publish check-build
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
env:
PYPI_USERNAME: __token__
PYPI_PASSWORD: ${{ secrets.PYPI_TOKEN }}