forked from OpenMDAO/pyCycle
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (31 loc) · 935 Bytes
/
release_workflow.yml
File metadata and controls
42 lines (31 loc) · 935 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
40
41
42
# Publish release to PyPi
name: Publish Release
on:
# Trigger on release, to publish release packages to PyPI
release:
types: [published]
# Run the workflow manually
# This might be useful if the automated publish fails for some reason (use with CARE!!)
workflow_dispatch:
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: deps
run: python -m pip install -U hatch
- name: build
run: hatch build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# this is just for testing, remove for flight:
with:
repository-url: https://test.pypi.org/legacy/
verbose: true