Skip to content

Commit 60b40a9

Browse files
committed
ci: Modernize deployment workflow
1 parent 1628890 commit 60b40a9

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/build-and-test.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,22 @@ jobs:
5757
steps:
5858
- uses: actions/checkout@v6
5959

60-
- name: Setup Python
60+
- name: Set up Python
6161
uses: actions/setup-python@v6
6262
with:
63-
python-version: "3.x"
63+
python-version: "3.11"
6464

6565
- name: Check release
6666
id: check_release
6767
run: |
68-
python -m pip install poetry githubrelease httpx==0.18.2 autopub twine wheel
69-
echo "release=$(autopub check)" >> $GITHUB_OUTPUT
68+
python -m pip install autopub[github] twine wheel
69+
autopub check
7070
7171
- name: Publish
72-
if: ${{ steps.check_release.outputs.release=='' }}
72+
if: ${{ steps.check_release.outputs.autopub_release=='true' }}
7373
env:
74-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
74+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7575
TWINE_USERNAME: "__token__"
7676
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
7777
run: |
78-
git remote set-url origin https://$GITHUB_TOKEN@github.com/${{ github.repository }}
7978
autopub deploy

0 commit comments

Comments
 (0)