-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 1005 Bytes
/
pypi.yaml
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
40
41
---
name: Publish Python 🐍 distribution 📦 to PyPI
on:
push:
tags:
- "v*"
jobs:
build:
name: Build distribution
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v2
- name: Build distribution
uses: uclahs-cds/tool-pypi-publish-action/build-distribution@58e64514405eafe4f8c40130001cbd4d62acdf5c
with:
package-name: mopepgen
publish-to-pypi:
name: Publish Python 🐍 distribution 📦 to PyPI
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/${{ needs.build.outputs.package_name }}
permissions:
id-token: write
steps:
- name: Checkout main
uses: actions/checkout@v2
- name: Publish to PyPI
uses: uclahs-cds/tool-pypi-publish-action/publish-to-pypi@58e64514405eafe4f8c40130001cbd4d62acdf5c
with:
package-name: mopepgen
url: https://upload.pypi.org/legacy/