Skip to content
Open
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
39 changes: 39 additions & 0 deletions .github/workflows/publish-iam-ape.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish iam-ape to JFrog

# Manual only. workflow_dispatch can be triggered ONLY by users with Write
# access to this repository, so publishing is limited to maintainers.
# Scoped to the iam-ape package only (working-directory: iam-ape); no other
# tool in this repo is built or published.
on:
workflow_dispatch:

permissions:
contents: read

jobs:
publish:
name: Build & publish iam-ape
runs-on: ubuntu-latest
defaults:
run:
working-directory: iam-ape
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install build tools
run: pip install build twine

- name: Build iam-ape
run: python -m build

- name: Publish to JFrog
env:
TWINE_USERNAME: ${{ secrets.JFROG_RW_USER }}
TWINE_PASSWORD: ${{ secrets.JFROG_RW_PASSWORD }}
TWINE_REPOSITORY_URL: https://orcasecurity.jfrog.io/artifactory/api/pypi/orca-pypi
run: twine upload --skip-existing dist/*