File tree 1 file changed +8
-12
lines changed
1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change 7
7
jobs :
8
8
main :
9
9
runs-on : ubuntu-latest
10
+ permissions :
11
+ id-token : write
12
+ contents : write
13
+ environment : pypi
10
14
steps :
11
15
- uses : actions/checkout@v4
12
16
- name : Set up Python 3.10
19
23
- name : Build package
20
24
run : |
21
25
make build
26
+ - name : Publish package to Pypi
27
+ uses : pypa/gh-action-pypi-publish@release/v1
22
28
env :
23
- TWINE_USERNAME : ${{ secrets.pypi_username }}
24
- TWINE_PASSWORD : ${{ secrets.pypi_password }}
29
+ repository-url : https://pypi.org/project/UnleashClient/
25
30
- name : Build docs
26
31
run : |
27
32
make install-docs
31
36
uses : peaceiris/actions-gh-pages@v3
32
37
with :
33
38
github_token : ${{ secrets.GITHUB_TOKEN }}
34
- publish_dir : ./docs/_build/html
35
- - name : Notify Slack of pipeline completion
36
- uses : 8398a7/action-slack@v2
37
- with :
38
- status : ${{ job.status }}
39
- author_name : Github Action
40
- env :
41
- GITHUB_TOKEN : ${{ secrets.github_slack_token }}
42
- SLACK_WEBHOOK_URL : ${{ secrets.slack_webhook }}
43
- if : always()
39
+ publish_dir : ./docs/_build/htmlg
You can’t perform that action at this time.
0 commit comments