Skip to content

Commit d0a97ae

Browse files
add CI/CD deployment workflow
1 parent 697eb70 commit d0a97ae

File tree

3 files changed

+33
-79
lines changed

3 files changed

+33
-79
lines changed

.github/workflows/python-publish.yml

Lines changed: 32 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
name: Publish to PyPi
22

3-
# on:
4-
# release:
5-
# types: [created]
6-
73
on:
8-
push:
9-
branches: ['dev']
4+
release:
5+
types: [created]
106

117
jobs:
128
check-docs-update:
@@ -47,36 +43,36 @@ jobs:
4743
if: always()
4844

4945

50-
# distribute:
51-
# runs-on: ubuntu-latest
52-
# env:
53-
# OS: ubuntu-latest
54-
# PYTHON: '3.7'
55-
# steps:
56-
# - uses: actions/checkout@v2
57-
# - name: Set up Python
58-
# uses: actions/setup-python@v2
59-
# with:
60-
# python-version: '3.7'
46+
distribute:
47+
runs-on: ubuntu-latest
48+
env:
49+
OS: ubuntu-latest
50+
PYTHON: '3.7'
51+
steps:
52+
- uses: actions/checkout@v2
53+
- name: Set up Python
54+
uses: actions/setup-python@v2
55+
with:
56+
python-version: '3.7'
6157

62-
# - name: Install dependencies
63-
# run: |
64-
# python -m pip install --upgrade pip
65-
# pip install setuptools wheel twine
58+
- name: Install dependencies
59+
run: |
60+
python -m pip install --upgrade pip
61+
pip install setuptools wheel twine
6662
67-
# - name: Build and publish
68-
# env:
69-
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
70-
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
71-
# run: |
72-
# python setup.py sdist bdist_wheel
73-
# twine upload dist/*
63+
- name: Build and publish
64+
env:
65+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
66+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
67+
run: |
68+
python setup.py sdist bdist_wheel
69+
twine upload dist/*
7470
75-
# - name: push build status to Slack
76-
# uses: 8398a7/action-slack@v3
77-
# with:
78-
# status: ${{ job.status }}
79-
# fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
80-
# env:
81-
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
82-
# if: always()
71+
- name: push build status to Slack
72+
uses: 8398a7/action-slack@v3
73+
with:
74+
status: ${{ job.status }}
75+
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
76+
env:
77+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
78+
if: always()

CHANGELOG.MD

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1 @@
1-
## 0.0.2 | 2023-02-14
2-
3-
This release test the deployment flow
4-
5-
### Test issue
6-
7-
- [FIXED] [0003](https://github.com/Flutterwave/rave-android/pull/274) Test Commit 54
8-
- [FIXED] [0001](https://github.com/Flutterwave/rave-android/pull/274) Test rCommit 2
9-
- [FIXED] [0002](https://github.com/Flutterwave/rave-android/pull/274) Test Commit 435g7
10-
- [FIXED] [0002](https://github.com/Flutterwave/rave-android/pull/274) Test Commit 70002346
11-
- [ADDED] [0003](https://github.com/Flutterwave/rave-android/pull/274) Test Commit 0.04
12-
13-
14-
## 0.0.2 | 2023-02-12
15-
16-
This release test the deployment flow
17-
18-
### Test issue
19-
20-
- [FIXED] [0003](https://github.com/Flutterwave/rave-android/pull/274) Test Commit
21-
- [FIXED] [0001](https://github.com/Flutterwave/rave-android/pull/274) Test rCommit 2
22-
- [FIXED] [0002](https://github.com/Flutterwave/rave-android/pull/274) Test Commit 4000
23-
- [ADDED] [00030](https://github.com/Flutterwave/rave-android/pull/274) Test Commit 0.01
24-
25-
## 0.0.1 | 2023-02-05
26-
27-
This release test the deployment flow 1
28-
29-
### Test issue
30-
31-
- [FIXED] [0003](https://github.com/Flutterwave/rave-android/pull/274) Bro rest. You fit sleep
32-
- [ADDED] [00023](https://github.com/Flutterwave/rave-android/pull/274) Test Commit 0.056
33-
34-
## 0.0.0 | 2023-02-01
35-
36-
This release test the deployment flow 0
37-
38-
### Test issue
39-
40-
- [FIXED] [0000](https://github.com/Flutterwave/rave-android/pull/274) Example Commit 0.5
41-
- [FIXED] [0000](https://github.com/Flutterwave/rave-android/pull/274) God abeg! another commit again? We go again
1+
# Title

documentation/TEST.MD

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)