From 060e6b7ceaa40b32c2879b2232242b5f9a367a72 Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Fri, 29 Jul 2022 19:17:22 +0530 Subject: [PATCH] ci: Use hatch to build package --- .github/workflows/release.yml | 18 +++++++++++------- .releaserc | 2 +- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fbb96207..c16bba90 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,20 +6,24 @@ on: jobs: release: name: Release - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest steps: - - name: Checkout Entire Repository - uses: actions/checkout@v2 + - uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Setup Node.js v12 - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: - node-version: 12 + node-version: 14 + - uses: actions/setup-python@v4 + with: + python-version: '3.x' + - name: Setup dependencies run: | npm install @semantic-release/git @semantic-release/exec --no-save - pip install wheel twine + python3 -m pip install wheel twine + python3 -m pip install git+https://github.com/pypa/hatch + - name: Create Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.releaserc b/.releaserc index 43cc0109..3d33a1da 100644 --- a/.releaserc +++ b/.releaserc @@ -10,7 +10,7 @@ ], [ "@semantic-release/exec", { - "prepareCmd": "python setup.py bdist_wheel --universal" + "prepareCmd": "hatch build -t sdist -t wheel" } ], [