-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (39 loc) · 1.11 KB
/
release.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
42
43
44
45
46
47
48
49
name: "Release"
on:
push:
branches:
- master
env:
python-version: 3.10.6
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
release:
timeout-minutes: 30
name: "Release"
runs-on: ubuntu-latest
steps:
- name: Check the code out
uses: actions/checkout@v3
- name: Install Python ${{ env.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.python-version }}
- name: Initialize .pypirc
run: |
echo -e "[pypi]" >> ~/.pypirc
echo -e "username = __token__" >> ~/.pypirc
echo -e "password = ${{ secrets.PYPI_TOKEN }}" >> ~/.pypirc
- name: Install CircleCI-specific dependencies
run: |
sudo apt update
sudo apt install -y libenchant-2-2
- name: Install the project dependencies
run: make init
- name: Create package
run: make dist
- name: Upload to PyPI
run: |
source venv/bin/activate
twine upload dist/*