Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c8b3d1e

Browse files
committed
docs: improve github action tutorial
1 parent fbd2e21 commit c8b3d1e

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

‎docs/tutorials/github_actions.md‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,21 @@ jobs:
9494
deploy:
9595
runs-on: ubuntu-latest
9696
steps:
97-
- uses: actions/checkout@v1
97+
- uses: actions/checkout@v3
98+
with:
99+
fetch-depth: 0
98100
- name: Set up Python
99-
uses: actions/setup-python@v1
101+
uses: actions/setup-python@v4
100102
with:
101103
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
102110
- name: Install dependencies
103111
run: |
104-
python -m pip install --pre -U poetry
105112
poetry --version
106113
poetry install
107114
- name: Build and publish
@@ -112,7 +119,7 @@ jobs:
112119
./scripts/publish
113120
```
114121

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)
116123
You can also use [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) to publish your package.
117124

118125
Push the changes and that's it.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /