Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

12 feat devsecops #31

Merged
merged 3 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/python_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
# c
ref: ${{ GITHUB.HEAD_REF }}

- name: Install python
uses: actions/setup-python@v5
with:
Expand All @@ -30,9 +31,6 @@ jobs:
run: poetry install --no-root
- name: Build poetry
working-directory: unoplat-code-confluence
run: poetry build
# TODO: enable test when test are added
# - name: Run tests
# working-directory: unoplat-code-confluence
# run: poetry run pytest
run: poetry build -f wheel


10 changes: 9 additions & 1 deletion .github/workflows/python_publish_release_management.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
permissions:
contents: read
packages: write
id-token: write
if: needs.main-pr-merge.outputs.release_created == 'true'
strategy:
matrix: ${{ fromJson(needs.main-pr-merge.outputs.matrix) }}
Expand All @@ -67,7 +68,14 @@ jobs:
with:
ref: main
fetch-depth: 0

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: unoplat-code-confluence/dist

- name: Publish package
working-directory: ${{ matrix.path }}
run: |
poetry publish --build-wheel
poetry publish --build-wheel