-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: switched release to python semantic release
- Loading branch information
1 parent
5742535
commit b073439
Showing
3 changed files
with
33 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,23 +41,17 @@ jobs: | |
|
||
semantic_release: | ||
runs-on: ubuntu-latest | ||
name: Runs semantic release | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: codfish/[email protected] | ||
- name: Python Semantic Release | ||
id: semantic | ||
uses: python-semantic-release/python-semantic-release@master | ||
with: | ||
dry-run: false | ||
branches: | | ||
['main'] | ||
additional-packages: | | ||
['@semantic-release/git'] | ||
plugins: | | ||
['@semantic-release/git', '@semantic-release/commit-analyzer', '@semantic-release/release-notes-generator', '@semantic-release/github', '@semantic-release/git'] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: 000000000000000 | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: docker push version | ||
if: steps.semantic.outputs.new-release-published == 'true' | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
[tool.semantic_release] | ||
version_variable = [ | ||
"src/app/__init__.py:__version__", | ||
"cdk/app/__init__.py:__version__", | ||
] | ||
major_on_zero = false | ||
branch = "main" | ||
|
||
[tool.semantic_release.remote.token] | ||
env = "GITHUB_TOKEN" | ||
|
||
[tool.semantic_release.changelog] | ||
changelog_file = "CHANGELOG.md" | ||
exclude_commit_patterns = [ | ||
'''chore(?:\([^)]*?\))?: .+''', | ||
'''ci(?:\([^)]*?\))?: .+''', | ||
'''refactor(?:\([^)]*?\))?: .+''', | ||
'''style(?:\([^)]*?\))?: .+''', | ||
'''test(?:\([^)]*?\))?: .+''', | ||
'''build\((?!deps\): .+)''', | ||
'''Merged? .*''', | ||
'''Initial Commit.*''', | ||
# Old semantic-release version commits | ||
'''^\d+\.\d+\.\d+''', | ||
] |