Skip to content

Commit 32f9575

Browse files
committed
Testing publish action
1 parent 564a4cd commit 32f9575

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
name: Publish
1+
name: Publish (Testing)
22

3-
on:
4-
release:
5-
types: [published]
3+
on: [push, pull_request]
64

75
jobs:
86
publish:
@@ -14,8 +12,3 @@ jobs:
1412
python-version: '3.7'
1513
- name: Build wheels
1614
run: ./scripts/build.sh
17-
- name: Publish to PyPI
18-
uses: pypa/gh-action-pypi-publish@66f4ba7
19-
with:
20-
user: __token__
21-
ACCESS_TOKEN: ${{ secrets.pypy_password }}

scripts/build.sh

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This script builds wheels for the API, SDK, and extension packages in the
44
# dist/ dir, to be uploaded to PyPI.
55

6-
# set -ev
6+
set -ev
77

88
# Get the latest versions of packaging tools
99
python3 -m pip install --upgrade pip setuptools wheel
@@ -13,12 +13,19 @@ BASEDIR=$(dirname $(readlink -f $(dirname $0)))
1313
(
1414
cd $BASEDIR
1515
mkdir -p dist
16+
17+
# Clean old artifacts
1618
rm -rf dist/*
1719

18-
for d in opentelemetry-api/ opentelemetry-sdk/ ext/*/ ; do
19-
(
20-
cd "$d"
21-
python3 setup.py --verbose bdist_wheel --dist-dir "$BASEDIR/dist/"
22-
)
23-
done
20+
# Clean old artifacts
21+
for d in opentelemetry-api/ opentelemetry-sdk/ ext/*/ ; do
22+
(
23+
cd "$d"
24+
echo "pwd"
25+
echo $(pwd)
26+
python3 setup.py bdist_wheel --dist-dir "$BASEDIR/dist/"
27+
)
28+
done
29+
echo "built packages: "
30+
ls -lah "$BASEDIR/dist/"
2431
)

0 commit comments

Comments
 (0)