mirror of
https://github.com/frappe/bench.git
synced 2025-01-06 23:44:03 +00:00
ci: Use hatch to build package
This commit is contained in:
parent
af05b4945a
commit
060e6b7cea
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
@ -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 }}
|
||||
|
@ -10,7 +10,7 @@
|
||||
],
|
||||
[
|
||||
"@semantic-release/exec", {
|
||||
"prepareCmd": "python setup.py bdist_wheel --universal"
|
||||
"prepareCmd": "hatch build -t sdist -t wheel"
|
||||
}
|
||||
],
|
||||
[
|
||||
|
Loading…
Reference in New Issue
Block a user