Skip to content

Commit

Permalink
fix: maintain release pdm section
Browse files Browse the repository at this point in the history
  • Loading branch information
HsiangNianian committed Nov 15, 2023
1 parent a64de24 commit 2b6c0d8
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,22 @@ on:
jobs:
build:
runs-on: ubuntu-latest

env:
PDM_PUBLISH_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
PDM_PUBLISH_USERNAME: ${{ secrets.PYPI_USERNAME }}
steps:
- uses: actions/checkout@v3

- name: Install poetry
run: pipx install poetry
- name: Install pdm
run: pipx install pdm
shell: bash
- uses: actions/setup-python@v4
with:
python-version: "3.9"
architecture: "x64"
cache: "poetry"
- run: poetry install
shell: bash

- run: poetry config pypi-token.pypi "$PYPI_TOKEN"
cache: true
- run: pdm install
shell: bash
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}

- run: poetry publish --build
- run: pdm publish
shell: bash

0 comments on commit 2b6c0d8

Please sign in to comment.