Skip to content

Commit e4239bd

Browse files
authored
Add job for uploading the package (#139)
* Add job for uploading the package * The upload command also does building * Update release.yml
1 parent 0058861 commit e4239bd

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
release:
6+
types:
7+
- published
8+
9+
jobs:
10+
build_wheels:
11+
name: Build wheels on ${{ matrix.os }}
12+
runs-on: ubuntu-20.04
13+
if: github.event_name == 'release' && github.event.action == 'published'
14+
steps:
15+
- uses: actions/checkout@v2
16+
# Include all history and tags, needed for building the right version
17+
with:
18+
fetch-depth: 0
19+
20+
- uses: actions/setup-python@v2
21+
name: Install Python
22+
with:
23+
python-version: '3.8'
24+
25+
- name: Install datadog_checks_dev
26+
run: |
27+
python -m pip install datadog_checks_dev[cli]
28+
29+
- name: Set ddev pypi credentials
30+
run: |
31+
ddev config set pypi.user __token__
32+
ddev config set pypi.token ${{ secrets.PYPI_TOKEN }}
33+
34+
- name: Publish the wheel to PyPI
35+
run: |
36+
ddev release upload .

0 commit comments

Comments
 (0)