You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorials/github_actions.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,14 +94,21 @@ jobs:
94
94
deploy:
95
95
runs-on: ubuntu-latest
96
96
steps:
97
-
- uses: actions/checkout@v1
97
+
- uses: actions/checkout@v3
98
+
with:
99
+
fetch-depth: 0
98
100
- name: Set up Python
99
-
uses: actions/setup-python@v1
101
+
uses: actions/setup-python@v4
100
102
with:
101
103
python-version: "3.x"
104
+
- name: Install Poetry
105
+
uses: snok/install-poetry@v1
106
+
with:
107
+
version: latest
108
+
virtualenvs-in-project: true
109
+
virtualenvs-create: true
102
110
- name: Install dependencies
103
111
run: |
104
-
python -m pip install --pre -U poetry
105
112
poetry --version
106
113
poetry install
107
114
- name: Build and publish
@@ -112,7 +119,7 @@ jobs:
112
119
./scripts/publish
113
120
```
114
121
115
-
Notice that we are calling a bash script in `./scripts/publish`, you should configure it with your tools (twine, poetry, etc.). Check [commitizen example](https://github.com/commitizen-tools/commitizen/blob/master/scripts/publish)
122
+
Notice that we are using poetry, and we are calling a bash script in `./scripts/publish`. You should configure the action, and the publish with your tools (twine, poetry, etc.). Check [commitizen example](https://github.com/commitizen-tools/commitizen/blob/master/scripts/publish)
116
123
You can also use [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) to publish your package.
0 commit comments