-
-
Notifications
You must be signed in to change notification settings - Fork 150
26 lines (26 loc) · 692 Bytes
/
release.yaml
File metadata and controls
26 lines (26 loc) · 692 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
name: Publish to PyPI
on:
push:
tags:
- "*.*.*"
jobs:
publish:
runs-on: ubuntu-latest
if: github.repository == 'dask/dask-jobqueue'
environment:
name: pypi
url: https://pypi.org/p/dask-jobqueue
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: "3.10"
- name: Build package
run: pip install build && pyproject-build
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1