Skip to content

Commit 020a00e

Browse files
author
Denis Jelovina
committed
Update promote-to-pypi workflow to accept tags from push events and bump version to 0.8.22 in pyproject.toml
1 parent 8b5a525 commit 020a00e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/promote-to-pypi.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
tag:
77
description: 'Git tag / release to promote (e.g. pyalp.v0.8.14)'
88
required: true
9+
push:
10+
tags:
11+
- 'pyalp.v*'
912

1013
# Request OIDC id-token permissions at workflow level so actions can use
1114
# the GitHub Actions OIDC provider. The pypa publish action requires this
@@ -17,6 +20,10 @@ permissions:
1720
jobs:
1821
promote:
1922
runs-on: ubuntu-latest
23+
# Require approval from the `production` environment before the job can
24+
# access environment-scoped secrets (e.g. the PyPI API token). Create the
25+
# environment in the repository settings and add the secret `PYPI_API_TOKEN`.
26+
environment: production
2027
# Also explicitly request id-token at the job level to be extra clear.
2128
permissions:
2229
id-token: write
@@ -28,7 +35,8 @@ jobs:
2835
- name: Download release assets
2936
uses: softprops/action-download-release@v1
3037
with:
31-
tag: ${{ github.event.inputs.tag }}
38+
# Accept tag from workflow_dispatch input OR from the push event's ref name
39+
tag: ${{ github.event.inputs.tag || github.ref_name }}
3240
# downloads into ./release_assets by default
3341

3442
- name: List downloaded assets

pyalp/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "pyalp"
7-
version = "0.8.21"
7+
version = "0.8.22"
88
description = "Python bindings for ALP GraphBLAS (minimal package layout)"
99
authors = [ { name = "ALP" } ]
1010
readme = "README.md"

0 commit comments

Comments
 (0)