File tree Expand file tree Collapse file tree 1 file changed +31
-3
lines changed Expand file tree Collapse file tree 1 file changed +31
-3
lines changed Original file line number Diff line number Diff line change 1
- name : test
2
- run-name : Test
3
- on : [ push ]
1
+ name : Test and Deploy
2
+ on : push
4
3
jobs :
5
4
test :
5
+ name : Test
6
6
strategy :
7
7
fail-fast : false
8
8
matrix :
31
31
32
32
- name : Run tests
33
33
run : make test
34
+
35
+ publish-to-pypi :
36
+ name : Build and Publish to PyPI
37
+ needs :
38
+ - test
39
+ if : github.ref == 'refs/heads/master'
40
+ runs-on : ubuntu-latest
41
+ environment :
42
+ name : pypi
43
+ url : https://pypi.org/p/fast-plate-ocr
44
+ permissions :
45
+ id-token : write
46
+ steps :
47
+ - uses : actions/checkout@v3
48
+
49
+ - name : Install poetry
50
+ run : pipx install poetry
51
+
52
+ - name : Setup Python
53
+ uses : actions/setup-python@v3
54
+ with :
55
+ python-version : ' 3.10'
56
+
57
+ - name : Build a binary wheel
58
+ run : poetry build
59
+
60
+ - name : Publish distribution 📦 to PyPI
61
+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments