2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-08 00:04:38 +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: jobs:
release: release:
name: Release name: Release
runs-on: ubuntu-18.04 runs-on: ubuntu-latest
steps: steps:
- name: Checkout Entire Repository - uses: actions/checkout@v2
uses: actions/checkout@v2
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup Node.js v12 - uses: actions/setup-node@v2
uses: actions/setup-node@v1
with: with:
node-version: 12 node-version: 14
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Setup dependencies - name: Setup dependencies
run: | run: |
npm install @semantic-release/git @semantic-release/exec --no-save 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 - name: Create Release
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

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