forked from tektronix/tm_devices
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Update semantic release step to not use the docker container. (te…
…ktronix#35) Signed-off-by: v12ganesh [email protected]
- Loading branch information
Showing
1 changed file
with
15 additions
and
8 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 |
---|---|---|
|
@@ -15,6 +15,9 @@ on: | |
concurrency: | ||
group: pypi | ||
jobs: | ||
# This job requires a Personal Access Token (Classic) with | ||
# the public_repo permission. It also needs secrets with GPG | ||
# signing key information for the same account that the token is from. | ||
pypi-version: | ||
name: Update package version | ||
if: github.repository == 'tektronix/tm_devices' && github.ref == 'refs/heads/main' | ||
|
@@ -31,7 +34,7 @@ jobs: | |
persist-credentials: false | ||
- name: Import GPG key for signing commits | ||
id: import-gpg | ||
uses: crazy-max/ghaction-import-gpg@v4 | ||
uses: crazy-max/ghaction-import-gpg@v6 | ||
with: | ||
gpg_private_key: ${{ secrets.TEK_OPENSOURCE_GPG_PRIVATE_KEY }} | ||
passphrase: ${{ secrets.TEK_OPENSOURCE_GPG_PASSPHRASE }} | ||
|
@@ -43,19 +46,23 @@ jobs: | |
with: | ||
python-version: x | ||
check-latest: true | ||
- name: Install dependencies | ||
run: pip install python-semantic-release | ||
- name: Check for unreleased entries in the Changelog | ||
run: python scripts/check_unreleased_changelog_items.py | ||
- name: Copy Changelog to template directory | ||
run: cp CHANGELOG.md python_semantic_release_templates/.previous_changelog_for_template.md | ||
- name: Python Semantic Release | ||
id: release | ||
uses: python-semantic-release/[email protected] | ||
with: | ||
root_options: --verbose --strict | ||
force: ${{ inputs.release_level }} | ||
github_token: ${{ secrets.TEK_OPENSOURCE_TOKEN }} | ||
git_committer_name: ${{ steps.import-gpg.outputs.name }} | ||
git_committer_email: ${{ steps.import-gpg.outputs.email }} | ||
run: python -m semantic_release --verbose --strict --${{ inputs.release_level }} | ||
--commit --push --changelog --vcs-release | ||
env: | ||
GH_TOKEN: ${{ secrets.TEK_OPENSOURCE_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.TEK_OPENSOURCE_TOKEN }} | ||
GIT_AUTHOR_NAME: ${{ steps.import-gpg.outputs.name }} | ||
GIT_AUTHOR_EMAIL: ${{ steps.import-gpg.outputs.email }} | ||
GIT_COMMITTER_NAME: ${{ steps.import-gpg.outputs.name }} | ||
GIT_COMMITTER_EMAIL: ${{ steps.import-gpg.outputs.email }} | ||
outputs: | ||
built-version: ${{ steps.release.outputs.version }} | ||
pypi-build: | ||
|