-
Notifications
You must be signed in to change notification settings - Fork 8
41 lines (33 loc) · 1.03 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Upload PyRMQ to PyPI
on: workflow_dispatch
# workflow_run:
# workflows: ["Test across Python versions"]
# branches: [master]
# types:
# - completed
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install project dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Run semantic-release
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm install -g semantic-release @semantic-release/changelog @semantic-release/exec @semantic-release/git @semantic-release/github
semantic-release