Skip to content

Commit

Permalink
build: 打包优化
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxi committed Jul 26, 2024
1 parent 3830f58 commit 6b38676
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 38 deletions.
33 changes: 8 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,19 @@ on:
workflow_dispatch:

jobs:
release-pypi:
name: Build and Release PyPI
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-python@v4
with:
python-version: "3.10"

- uses: actions/setup-node@v3
with:
node-version: 16

- name: Build artifacts
run: |
pip install build
python -m build
- uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
- uses: pdm-project/setup-pdm@v3

- run: npx changelogithub
continue-on-error: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Publish package distributions to PyPI
run: pdm publish

build-image:
runs-on: ubuntu-latest
Expand Down
26 changes: 13 additions & 13 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6b38676

Please sign in to comment.