Skip to content

added ability to specify workspace_id #4

added ability to specify workspace_id

added ability to specify workspace_id #4

name: Publish to Test PyPI
on:
push:
branches: [ dev ]
paths: ['pyproject.toml']
concurrency:
group: build-pypi-${{ github.ref }}
cancel-in-progress: true
jobs:
test-pypi-publish:
runs-on: ubuntu-latest
environment:
name: test-pypi
url: https://test.pypi.org/p/infisical_api
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python3 -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
packages-dir: dist/