diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..a6830a83 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +name: Release +on: + release: + types: [published] +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2.5.0 + + - name: Set up Python + uses: actions/setup-python@v4.3.0 + with: + python-version: '3.10.10' + #---------------------------------------------- + # ----- install & configure poetry ----- + #---------------------------------------------- + - name: Install and configure Poetry + uses: snok/install-poetry@v1.3.3 + with: + version: 1.4.2 + virtualenvs-create: true + virtualenvs-in-project: true + installer-parallel: true + - run: poetry build + - run: poetry publish --username=__token__ --password=${{ secrets.PYPI_TOKEN }}