-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 919 Bytes
/
release.yml
File metadata and controls
39 lines (36 loc) · 919 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
name: release
on:
push:
tags:
- 'v*'
workflow_dispatch:
# PyPI Trusted Publishing (OIDC) — no API token needed.
# Configure once at https://pypi.org/manage/project/astroway/settings/publishing/
# Provider: GitHub
# Owner: astroway
# Repository: astroway-python
# Workflow: release.yml
# Environment: (leave empty)
permissions:
contents: read
id-token: write
attestations: write
jobs:
publish:
runs-on: ubuntu-latest
environment: pypi
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: pip install -e ".[dev]"
- run: pytest -q
- run: pip install build
- run: python -m build
- uses: actions/attest-build-provenance@v2
with:
subject-path: dist/*
- uses: pypa/gh-action-pypi-publish@release/v1
with:
attestations: true