Skip to content

Commit fc5c03d

Browse files
committed
Added autopublish and CHANGELOG.md.
1 parent ceebc26 commit fc5c03d

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

.github/pull_request_template.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!--- Thank you for contributing! --->
2+
3+
Please briefly explain which parts of the code your changes affect, and their
4+
practical impact in user experience.
5+
6+
Make sure you add a one-line description of your changes in
7+
[CHANGELOG.md](https://github.com/Exahilosys/survey/blob/master/CHANGELOG.md)
8+
as a separate entry at the end of the respective category under the
9+
**Unreleased** section. Use the format `- #<PR number> <description>`.

.github/workflows/publish.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflows will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
name: Upload Python Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
deploy:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: '3.x'
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install setuptools wheel twine
25+
- name: Build and publish
26+
env:
27+
TWINE_USERNAME: __token__
28+
TWINE_PASSWORD: ${{ secrets.PYPI }}
29+
run: |
30+
python setup.py sdist bdist_wheel
31+
twine upload dist/*

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#### Additions
2+
3+
#### Changes
4+
5+
#### Removals
6+
7+
#### Fixes

0 commit comments

Comments
 (0)