From 3f24dc2f1de51e36e0053d7de8157e08c2e49d54 Mon Sep 17 00:00:00 2001 From: scdhh Date: Wed, 10 Aug 2022 14:10:13 +0800 Subject: [PATCH] Add Release CI --- .github/workflows/Release.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..a54ba9c --- /dev/null +++ b/.github/workflows/Release.yml @@ -0,0 +1,25 @@ +name: Release CI + +on: + push: + tags: + - "*" + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: '3.10' + - name: Install Poetry + shell: bash + run: | + pip install poetry + - name: Build + shell: bash + run: | + poetry install + poetry env use python + poetry publish --build -u ${{ secrets.USERNAME }} -p ${{ secrets.PASSWORD }} -n