Skip to content

Commit 181bc0e

Browse files
authored
fix: publish pipeline (#349)
1 parent 39c2a51 commit 181bc0e

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

.github/workflows/release-package.yml

+8-12
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
jobs:
88
main:
99
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
12+
contents: write
13+
environment: pypi
1014
steps:
1115
- uses: actions/checkout@v4
1216
- name: Set up Python 3.10
@@ -19,9 +23,10 @@ jobs:
1923
- name: Build package
2024
run: |
2125
make build
26+
- name: Publish package to Pypi
27+
uses: pypa/gh-action-pypi-publish@release/v1
2228
env:
23-
TWINE_USERNAME: ${{ secrets.pypi_username }}
24-
TWINE_PASSWORD: ${{ secrets.pypi_password }}
29+
repository-url: https://pypi.org/project/UnleashClient/
2530
- name: Build docs
2631
run: |
2732
make install-docs
@@ -31,13 +36,4 @@ jobs:
3136
uses: peaceiris/actions-gh-pages@v3
3237
with:
3338
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

0 commit comments

Comments
 (0)