This repository was archived by the owner on Oct 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Create Github release and tag
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches :
7+ - autopilots-utils-pypi-publish
8+ jobs :
9+ build-package :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+
14+ - uses : actions/setup-python@v5
15+ with :
16+ python-version : " 3.10"
17+
18+ - name : Setup pants
19+ uses : pantsbuild/actions/init-pants@v8
20+ with :
21+ gha-cache-key : cache0
22+ named-caches-hash : ${{ hashFiles('3rdparty/*.txt') }}
23+
24+ - name : Build wheel
25+ run : |
26+ pants package packages/autopilot-utils/::
27+
28+ - name : Store the distribution packages
29+ uses : actions/upload-artifact@v4
30+ with :
31+ name : autopilot-utils-package-distributions
32+ path : dist/*.whl
33+
34+
35+ publish-to-pypi :
36+ runs-on : ubuntu-latest
37+ needs : [build-package]
38+ env :
39+ name : pypi
40+ url : https://pypi.org/p/autopilot-utils
41+ permissions :
42+ id-token : write
43+ steps :
44+ - name : Download distribution packages
45+ uses : actions/download-artifact@v4
46+ with :
47+ name : autopilot-utils-package-distributions
48+ path : dist/
49+ - name : Publish to PyPI
50+ uses : pypa/gh-action-pypi-publish@release/v1
51+ with :
52+ verify-metadata : false
53+
You can’t perform that action at this time.
0 commit comments