From dad16abcd3642351e5fe9e0eb515bb01d9d7708d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=B5=E6=9B=A6?= Date: Sat, 14 Oct 2023 21:19:10 +0800 Subject: [PATCH] Create release.yml --- .github/workflows/release.yml | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..6085c87 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,41 @@ +name: Release and Build Docker Image + +permissions: + contents: write + +on: + push: + tags: + - "*" + +jobs: + release-pypi: + name: Build and Release PyPI + runs-on: ubuntu-latest + + 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 }} + + - run: npx changelogithub + continue-on-error: true + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}