Skip to content

Commit 90b9be0

Browse files
committed
Update workflow file
1 parent 0450c40 commit 90b9be0

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

.github/workflows/publish-release.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# 1. Update changelog
2-
# 2. Build the exe file and upload it in the release assets.
3-
# 3. Upload a Python Package using Twine
2+
# 2. Upload a Python Package using Twine
43

54
name: Release fosslight_source
65

@@ -29,4 +28,24 @@ jobs:
2928
with:
3029
github_token: ${{ secrets.TOKEN }}
3130
branch: main
32-
31+
32+
deploy:
33+
runs-on: ubuntu-18.04
34+
needs: update-changelog
35+
steps:
36+
- uses: actions/checkout@v2
37+
- name: Set up Python
38+
uses: actions/setup-python@v2
39+
with:
40+
python-version: '3.7'
41+
- name: Install dependencies
42+
run: |
43+
python -m pip install --upgrade pip
44+
pip install setuptools wheel twine
45+
- name: Build and publish
46+
env:
47+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
48+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
49+
run: |
50+
python setup.py sdist bdist_wheel
51+
twine upload dist/*

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
url='https://github.com/LGE-OSS/fosslight_source',
2626
download_url='https://github.com/LGE-OSS/fosslight_source',
2727
classifiers=['Programming Language :: Python :: 3.6',
28-
'License :: OSI Approved :: Apache License 2.0'],
28+
'License :: OSI Approved :: Apache Software License'],
2929
install_requires=required,
3030
entry_points={
3131
"console_scripts": [

0 commit comments

Comments
 (0)