diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..92a44c34 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,30 @@ +name: Create GitHub release + +on: + push: + tags: + - "v*" + +jobs: + release: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + - name: Install dependencies + run: python -m pip install --upgrade pip wheel build + - name: Build the package + run: python -m build + - name: Create GitHub release + uses: softprops/action-gh-release@v1 + with: + files: dist/** + generate_release_notes: true