Skip to content

Commit 54abfde

Browse files
authored
feat(release): Updated the ci.yml file (#74)
Signed-off-by: Ujjwal Kumar <[email protected]>
1 parent 0c7d12c commit 54abfde

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,40 @@
11
name: CI
2-
32
on:
43
push:
54
branches: [master]
65
tags: ['v*']
76
pull_request:
87
branches: [master]
9-
108
jobs:
119
test:
1210
runs-on: ubuntu-latest
1311
environment: ci
1412
strategy:
1513
matrix:
1614
python-version: ['3.8', '3.9', '3.10', '3.11']
17-
1815
steps:
1916
- uses: actions/checkout@v3
2017
with:
2118
fetch-depth: 0
22-
2319
- name: Set up Python ${{ matrix.python-version }}
2420
uses: actions/setup-python@v4
2521
with:
2622
python-version: ${{ matrix.python-version }}
2723
cache: 'pip'
28-
2924
- name: Install pandoc
3025
run: |
3126
sudo apt-get update
3227
sudo apt-get install pandoc
3328
pip install pypandoc
34-
3529
- name: Install npm
3630
run: |
3731
sudo npm install -g npm@latest || sudo npm install -g npm@9
38-
3932
- name: Install dependencies
4033
run: pip install 'tox<4' tox-gh-actions
41-
4234
- name: Run tests
4335
env:
4436
PYTHON_VERSION: ${{ matrix.python-version }}
4537
run: tox
46-
4738
- name: Install release dependencies
4839
if: github.ref == 'refs/heads/master' && matrix.python-version == '3.8'
4940
run: |
@@ -53,11 +44,12 @@ jobs:
5344
@semantic-release/exec \
5445
@semantic-release/git \
5546
@semantic-release/github
56-
5747
- name: Semantic Release
5848
if: github.ref == 'refs/heads/master' && matrix.python-version == '3.8'
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
5952
run: npx semantic-release
60-
6153
- name: Publish to PyPI
6254
if: startsWith(github.ref, 'refs/tags/') && matrix.python-version == '3.8'
6355
run: |

0 commit comments

Comments
 (0)