Skip to content

Commit 5d3c2f0

Browse files
author
Sam Partee
authored
Fix to CD pipeline (#40)
Implement small changes to CD pipeline
1 parent 296dc65 commit 5d3c2f0

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/publish.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,18 @@ jobs:
1919
with:
2020
python-version: "3.10"
2121

22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
python -m pip install setuptools wheel
26+
2227
- name: check-version
23-
run: echo ::set_output name=version::$(python setup.py --version)
28+
run: |
29+
echo "VERSION=$(python setup.py --version)" >> $GITHUB_OUTPUT
30+
id: version
2431
2532
- name: create python package
26-
run: python setup.py bdist_wheel
33+
run: python setup.py sdist bdist_wheel
2734

2835
- name: Create Release
2936
uses: ncipollo/release-action@v1
@@ -32,10 +39,11 @@ jobs:
3239
token: ${{ secrets.GITHUB_TOKEN }}
3340
draft: false
3441
generateReleaseNotes: true
35-
tag: v${{ steps.check-version.outputs.version }}
36-
commit: master
42+
tag: v${{ steps.version.outputs.VERSION }}
43+
commit: main
3744

38-
- uses: pypa/gh-action-pypi-publish@release/v1
45+
- name: deploy
46+
uses: pypa/gh-action-pypi-publish@release/v1
3947
with:
4048
user: __token__
4149
password: ${{ secrets.PYPI }}

0 commit comments

Comments
 (0)