Skip to content

Commit 3cd7fd0

Browse files
committed
chore: don't forget to build package before deploying it
1 parent 094c7d6 commit 3cd7fd0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,22 @@ jobs:
6161
python-version: [3.8]
6262

6363
steps:
64+
- uses: actions/checkout@v2
65+
- name: Set up Python ${{ matrix.python-version }}
66+
uses: actions/setup-python@v2
67+
with:
68+
python-version: ${{ matrix.python-version }}
69+
- name: Get tag
70+
id: tag
71+
run: echo "::set-output name=version::${GITHUB_REF#refs/tags/}"
72+
- name: Install dependencies
73+
run: |
74+
python -m pip install --upgrade pip setuptools wheel
75+
python -m pip install twine
76+
- name: Build package
77+
run: python setup.py sdist bdist_wheel
78+
- name: Check the package
79+
run: twine check dist/*
6480
- name: Publish package
6581
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
6682
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)