From 74823439a76dd6f898f8ba2f00a6a2a017cbfd9a Mon Sep 17 00:00:00 2001 From: Draga Doncila Pop Date: Wed, 1 Nov 2023 15:28:00 +1100 Subject: [PATCH] Add release workflow --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..21280e5 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +name: release + +on: + push: + branches: + - npe1 + - main + tags: + - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10 + workflow_dispatch: + +jobs: + release: + runs-on: ubuntu-latest + if: contains(github.ref, 'tags') + permissions: + id-token: write + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.x" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -U setuptools setuptools_scm wheel build + - name: build + run: | + python -m build . + - name: Publish + uses: pypa/gh-action-pypi-publish@release/v1