-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (32 loc) · 923 Bytes
/
deployPyPi.yml
File metadata and controls
37 lines (32 loc) · 923 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
# Job to deploy the built wheels to PyPI
#
# Assumptions:
# * saveNameWheel contains the the built wheels
# * the pypi account which owns the nimble project has trusted
# publishing set up for publish.py (the caller of this)
#
# Effects: google drive saved notebooks are overwritten with the
# given notebooks.
name: Deploy built package to pypi
on:
workflow_call:
inputs:
# The name of the artifact containing the wheels
saveNameWheel:
required: true
type: string
jobs:
deploy-pypi:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/nimble
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v3
with:
name: ${{inputs.saveNameWheel}}
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
# details set up by env variables above, and takes from dist folder