Skip to content

Commit

Permalink
style: Re-worded tasks and fixed inconsistent spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Feb 4, 2021
1 parent 392bfb4 commit 34a5628
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 30 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Generate Semantic Release and publish on PyPI
on:
push:
branches:
Expand All @@ -8,21 +8,21 @@ jobs:
name: Release
runs-on: ubuntu-18.04
steps:
- name: Checkout
- name: Checkout Entire Repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
- name: Setup Node.js v12
uses: actions/setup-node@v1
with:
node-version: 12
- name: Set-up semantic-release plugins
run: npm install @semantic-release/git @semantic-release/exec --no-save
- name: Set-up python build env
run: pip install wheel twine
- name: Release
- name: Setup dependencies
run: |
npm install @semantic-release/git @semantic-release/exec --no-save
pip install wheel twine
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TEST_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
TEST_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
TEST_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
TEST_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
run: npx semantic-release
50 changes: 30 additions & 20 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -1,25 +1,35 @@
{
"branches": ["v5.x"],
"plugins": [
"plugins": [
"@semantic-release/commit-analyzer",
"@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": "python setup.py bdist_wheel --universal"
}],
["@semantic-release/git", {
"assets": ["bench/__init__.py"],
"message": "chore(release): Bumped to Version ${nextRelease.version}\n\n${nextRelease.notes}"
}],
["@semantic-release/github", {
"assets": [
{"path": "dist/*"},
]
}],
["@semantic-release/exec", {
"publishCmd": "python -m twine upload dist/* -u $PYPI_USERNAME -p $PYPI_PASSWORD"
}]
]
[
"@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", {
"assets": ["bench/__init__.py"],
"message": "chore(release): Bumped to Version ${nextRelease.version}\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/github", {
"assets": [
{"path": "dist/*"},
]
}
],
[
"@semantic-release/exec", {
"publishCmd": "python -m twine upload dist/* -u $PYPI_USERNAME -p $PYPI_PASSWORD"
}
]
]
}

0 comments on commit 34a5628

Please sign in to comment.