2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-27 22:39:03 +00:00

ci: Use hatch to build package

This commit is contained in:
Gavin D'souza 2022-07-29 19:17:22 +05:30
parent af05b4945a
commit 060e6b7cea
2 changed files with 12 additions and 8 deletions

View File

@ -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 }}

View File

@ -10,7 +10,7 @@
],
[
"@semantic-release/exec", {
"prepareCmd": "python setup.py bdist_wheel --universal"
"prepareCmd": "hatch build -t sdist -t wheel"
}
],
[