-
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.
Version command can now track and bump Helm Chart.yaml values
- Loading branch information
Showing
8 changed files
with
538 additions
and
411 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
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 |
---|---|---|
@@ -1,24 +1,53 @@ | ||
name: CI/CD Workflow | ||
name: PyPI Publish Pipeline | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test-and-publish: | ||
build: | ||
runs-on: ubuntu-latest | ||
environment: release | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Run commands | ||
run: | | ||
pip install poetry | ||
poetry install | ||
poetry run pytest | ||
poetry build | ||
- name: Upload built package | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pypi-package | ||
path: dist | ||
|
||
publish: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
environment: | ||
name: release | ||
url: https://pypi.org/project/devtools-cli/ | ||
|
||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: pip install poetry | ||
- run: poetry install --with dev | ||
- run: poetry run pytest | ||
- run: poetry build | ||
- uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
- name: Download package artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: pypi-package | ||
path: dist | ||
|
||
- name: Publish package to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
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 |
---|---|---|
|
@@ -161,4 +161,4 @@ cython_debug/ | |
.idea/ | ||
|
||
# Non-versioned code | ||
.no-vcs/ | ||
.exclude/ |
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
Oops, something went wrong.