mirror of
https://github.com/frappe/bench.git
synced 2025-01-08 00:04:38 +00:00
style: Re-worded tasks and fixed inconsistent spacing
This commit is contained in:
parent
392bfb48f0
commit
34a56287b5
20
.github/workflows/release.yml
vendored
20
.github/workflows/release.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Release
|
name: Generate Semantic Release and publish on PyPI
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@ -8,21 +8,21 @@ jobs:
|
|||||||
name: Release
|
name: Release
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout Entire Repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js v12
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 12
|
node-version: 12
|
||||||
- name: Set-up semantic-release plugins
|
- name: Setup dependencies
|
||||||
run: npm install @semantic-release/git @semantic-release/exec --no-save
|
run: |
|
||||||
- name: Set-up python build env
|
npm install @semantic-release/git @semantic-release/exec --no-save
|
||||||
run: pip install wheel twine
|
pip install wheel twine
|
||||||
- name: Release
|
- name: Create Release
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
TEST_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
TEST_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
||||||
TEST_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
TEST_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
||||||
run: npx semantic-release
|
run: npx semantic-release
|
||||||
|
50
.releaserc
50
.releaserc
@ -1,25 +1,35 @@
|
|||||||
{
|
{
|
||||||
"branches": ["v5.x"],
|
"branches": ["v5.x"],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"@semantic-release/commit-analyzer",
|
"@semantic-release/commit-analyzer",
|
||||||
"@semantic-release/release-notes-generator",
|
"@semantic-release/release-notes-generator",
|
||||||
["@semantic-release/exec", {
|
[
|
||||||
"prepareCmd": 'sed -ir "s/[0-9]*\.[0-9]*\.[0-9]*/${nextRelease.version}/" bench/__init__.py'
|
"@semantic-release/exec", {
|
||||||
}],
|
"prepareCmd": 'sed -ir "s/[0-9]*\.[0-9]*\.[0-9]*/${nextRelease.version}/" bench/__init__.py'
|
||||||
["@semantic-release/exec", {
|
}
|
||||||
"prepareCmd": "python setup.py bdist_wheel --universal"
|
],
|
||||||
}],
|
[
|
||||||
["@semantic-release/git", {
|
"@semantic-release/exec", {
|
||||||
"assets": ["bench/__init__.py"],
|
"prepareCmd": "python setup.py bdist_wheel --universal"
|
||||||
"message": "chore(release): Bumped to Version ${nextRelease.version}\n\n${nextRelease.notes}"
|
}
|
||||||
}],
|
],
|
||||||
["@semantic-release/github", {
|
[
|
||||||
"assets": [
|
"@semantic-release/git", {
|
||||||
{"path": "dist/*"},
|
"assets": ["bench/__init__.py"],
|
||||||
]
|
"message": "chore(release): Bumped to Version ${nextRelease.version}\n\n${nextRelease.notes}"
|
||||||
}],
|
}
|
||||||
["@semantic-release/exec", {
|
],
|
||||||
"publishCmd": "python -m twine upload dist/* -u $PYPI_USERNAME -p $PYPI_PASSWORD"
|
[
|
||||||
}]
|
"@semantic-release/github", {
|
||||||
]
|
"assets": [
|
||||||
|
{"path": "dist/*"},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"@semantic-release/exec", {
|
||||||
|
"publishCmd": "python -m twine upload dist/* -u $PYPI_USERNAME -p $PYPI_PASSWORD"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user