-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (31 loc) · 911 Bytes
/
pypi.yml
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
name: Publish Python to Pypi
on: workflow_dispatch
jobs:
publish-to-pypi:
name: Publish Python distribution to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/larch-pickle
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Get release
id: get_release
uses: thebritican/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- name: create dist
run: |
mkdir dist
- uses: dsaltares/fetch-gh-release-asset@master
with:
version: tags/${{ steps.get_release.outputs.tag_name }}
file: '.*[.](whl|tar.gz|zip)$'
regex: true
target: "dist/"
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
skip-existing: true